Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding promise-aware function composition. #524

Merged
merged 1 commit into from Nov 19, 2014
Merged

Commits on Nov 19, 2014

  1. Adding functions pCompose and pPipe.

    R.pCompose works like R.compose, but handles promises.
    The resulting function will evaluate to a promise if
    any one of the composed functions returns a promise.
    If all of the composed functions return something other
    than a promise, then the behaviour is identical to that
    of R.compose(). In this sense, R.pCompose() is backwards
    compatible with R.compose.
    
    R.pPipe is like R.pCompose but takes the arguments in the opposite order.
    yuri committed Nov 19, 2014
    2
    Copy the full SHA
    7abec02 View commit details
    Browse the repository at this point in the history