is too magical. It both does @@lift, propagates null/undefined, and calls the function if @@lift doesn't exist.
doesn't feel very native. As a function, it could become a little verbose in pipelines, and starts to not show its value as much.
Instead, if we started with a @@map and a Function.map, that might be a better starting point. (Also, that section would need expanded in a different file.)
Specifically, it:
@@lift
, propagatesnull
/undefined
, and calls the function if@@lift
doesn't exist.Instead, if we started with a
@@map
and aFunction.map
, that might be a better starting point. (Also, that section would need expanded in a different file.)