Skip to content

Instantly share code, notes, and snippets.

@sslotsky sslotsky/augment.re
Created Mar 6, 2019

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