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