-
Notifications
You must be signed in to change notification settings - Fork 75
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
[wip] add first
function and tests to mirror last
#87
Conversation
|
Yes, but it's useful for composing new functions. var capitalize = converge(
function(head, tail) { return head + tail; },
[compose(
function(str) { return str.toUpperCase(); },
first
),
tail]
);
capitalize('hello'); // => 'Hello' refs #88 |
For compose, |
Yes, you are right. I still think it's much more expressive and since it's really common in FP it deserves to be it's own function. But if you think it's overkill feel free to close this PR. |
I would add |
I do like 101 having mirrors to existing utils; however, maybe in this case it is just a lack of documentation? Do you all think that documentation would be sufficient here? |
On a similar note, |
👍 on simplifying last. And probably you are right first is out of scope for 101.
yop. I will make a pr as soon as I have time. |
first
function and tests to mirror last
first
function and tests to mirror last
stale PR closing for now |
No description provided.