#46
Flipping out
Difficulty: | Medium |
Topics: | higher-order-functions |
Write a higher-order function which
flips the order of the arguments of an input function.
(= 3 ((__ nth) 2 [1 2 3 4 5])) | |
(= true ((__ >) 7 8)) | |
(= 4 ((__ quot) 2 8)) | |
(= [1 2 3] ((__ take) [1 2 3 4 5] 3)) |