Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The kata descripton is not complete.
The most popular/proper solution loses tail params if remaining
arg.length
is less than needed for the next functionIn this case arguments
4, 5
will be lost, becausefn3
will be returned (and not called).To pass all the test I firstly tweaked my solution so the
fn3
would be called with remainingargs
like(4, 5)
(what may breakfn3
).But I think it is still better than dropping any arguments.
In my last solution I
bind
remainingargs
and return partially appliedfn3
.👍
You mean the word
distinct
?Got me too, and now I have the solution which works for
[3,3,3,3,3,3]