Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* 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
You can’t perform that action at this time.