Skip to content

Instantly share code, notes, and snippets.

@sslotsky
Created March 6, 2019 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sslotsky/6f12f40bef469c7a4f8fac96c5b0ec96 to your computer and use it in GitHub Desktop.
Save sslotsky/6f12f40bef469c7a4f8fac96c5b0ec96 to your computer and use it in GitHub Desktop.
/* 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