Instead of satisfy(f).map(g), it might be nice to support a partial function satisfy { case x if f(x) => g(x) } style of combinator, this can be then optimised and replace the SatisfyExchange instruction with a const function or something like that. Worth exploring! It might be possible to do this as an overload, not sure.
Instead of
satisfy(f).map(g)
, it might be nice to support a partial functionsatisfy { case x if f(x) => g(x) }
style of combinator, this can be then optimised and replace theSatisfyExchange
instruction with a const function or something like that. Worth exploring! It might be possible to do this as an overload, not sure.