Skip to content

Instantly share code, notes, and snippets.

@r3dm1ke
Created February 8, 2020 16:52
Show Gist options
  • Select an option

  • Save r3dm1ke/22827520569052a419cf90ab9a1d45dc to your computer and use it in GitHub Desktop.

Select an option

Save r3dm1ke/22827520569052a419cf90ab9a1d45dc to your computer and use it in GitHub Desktop.
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