Skip to content

Conversation

@lorenyu
Copy link

@lorenyu lorenyu commented Oct 24, 2013

Here's a fix for the fact that compose was composing functions in the wrong order, and modified test cases to test for it.

Previously __::compose($f, $g) would return a function $h such that $h($x) = $g($f($x).

Instead __::compose($f, $g) should return a function $h such that $h($x) = $f($g($x).

This is more consistent with the behavior of Underscore.js and is also closer to mathematical conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant