Simplifying Option.liftPredicate Usage in Pipe
Very simple question. Say you have code like this:
Is there any better thing to do than the
?
By "better" I mean something that would avoid the lambda in the conversion from an
Is there any better thing to do than the
?
By "better" I mean something that would avoid the lambda in the conversion from an
Array<number> to an Option<NonEmptyReadonlyArray<number>>