Last active
August 16, 2017 12:42
-
-
Save deque-blog/29adf17c453c5fb8a9893b406d8c4e5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add : | |
(m1, m2 : Money) -- Arguments of the function: 2 Money instances | |
-> {auto prf : SameCurrency m1 m2} -- Proof that m1 and m2 have the same currency | |
-> Money -- Return type: a new Money instance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment