6 kyu
Unary function chainer
2,759 of 7,261tpatja
Description:
Your task is to write a higher order function for chaining together a list of unary functions. In other words, it should return a function that does a left fold on the given functions.
chained([a,b,c,d])(input)
Should yield the same result as
d(c(b(a(input))))
Functional Programming
Fundamentals
Similar Kata:
Stats:
Created | Jan 29, 2015 |
Published | Jan 29, 2015 |
Warriors Trained | 24199 |
Total Skips | 7779 |
Total Code Submissions | 27821 |
Total Times Completed | 7261 |
Python Completions | 2759 |
JavaScript Completions | 4550 |
OCaml Completions | 16 |
Total Stars | 493 |
% of votes with a positive feedback rating | 94% of 908 |
Total "Very Satisfied" Votes | 809 |
Total "Somewhat Satisfied" Votes | 84 |
Total "Not Satisfied" Votes | 15 |