purrr icon indicating copy to clipboard operation
purrr copied to clipboard

Implement `compose()` lazily

Open lionel- opened this issue 5 years ago • 1 comments

So we could use compose() to create function operators like possibly(), safely(), etc. It would generate this call:

`_fn3`(`_fn2`(`_fn1`(...)))

Also allow custom names (automatically prefixed with _) in composed functions.

lionel- avatar Feb 27 '19 14:02 lionel-

Connected to #828 — should compose() evaluate lazily?

hadley avatar Aug 24 '22 12:08 hadley