Skip to content

Instantly share code, notes, and snippets.

@sslotsky
Created March 6, 2019 20:40
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/385ba5c22cbc48407fb395d30ac14693 to your computer and use it in GitHub Desktop.
Save sslotsky/385ba5c22cbc48407fb395d30ac14693 to your computer and use it in GitHub Desktop.
let (>>=) = (m: chainableList('a), f: list('a) => chainableList('b)) => switch(m) {
| Value(l) => l|> f
| Failure => Failure
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment