Nest functions

1 2 3 |

`...` |
functions to be nested together |

`.list` |
alternatively an explicit list of functions.
If specified |

`x` |
a function |

`y` |
a function |

compose creates a functional composition of the listed functions. Functional composition of functions f and g is defined as f(g(.)). Order matters the right most function listed will be the innermost function in the composition, same with the operator version. To remember the order lists will be the order read out, ie. compose(f,g) = f(g(x))

When using the operator version it is good to remember that parentheses are recommended see the examples

new function consisting of the functions nested

Andrew Redd

1 2 3 4 5 6 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.