Helpers are provided to curry and partially apply arguments to closures.
- Functional patterns are helpful and interesting.
- PHP 7 offers new features that make currying and partial application easier.
- While some existing PHP libraries exist that claim to address partial application and/or currying are just doing partial application and aren't using the PHP 7 hotness.
Curries the given closure, left-precedent arguments.
Curries the given closure, right-precedent arguments.
Partially applies arguments to the given closure, left-precedent arguments.
Partially applies arguments to the given closure, right-precedent arguments.
- Some examples in this readme pls
- bind_args with placeholders
- See https://javascript.info/currying-partials for more