Created
February 8, 2020 16:52
-
-
Save r3dm1ke/22827520569052a419cf90ab9a1d45dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| let sum = (a, b) => a + b; | |
| // ReasonML knows that the + operator is only applicable to integers | |
| // (every type has its own operators), so this results in: | |
| let sum = (a: int, b: int): int => a + b; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment