Created
March 6, 2019 20:42
-
-
Save sslotsky/6f12f40bef469c7a4f8fac96c5b0ec96 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
/* Fluent list operations in ReasonML */ | |
let l = return([1, 2, 3]) | |
>>= wrap(List.map(n => n * 2)) | |
>>= wrap(List.filter(n => n mod 2 != 0)) | |
>>= tail; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment