Replies: 1 comment
-
I thought about it some more and I am pretty confident that there is no simple way of expressing this with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using this combinator (named
altAllF
, F for Function, for lack of a better name):It's kind of similar to
altAll
, but somehow also does the opposite:altAll
is better suited for the case where you have a single function and an array of inputs and want to stop as soon as one of the inputs produces a "Some".altAllF
is better suited for the case where you have a single input and several functions and you want to stop as soon as one of the functions produces a "Some".I'm looking for a name and wondering if this would be a useful function to have in the library itself.
Or is there a simple way of expressing this via
altAll
?Beta Was this translation helpful? Give feedback.
All reactions