#59
Juxtaposition
 

Difficulty:N/A
Topics:medium higher-order-functions core-functions


Take a set of functions and return a new function that takes a variable number of arguments and returns a sequence containing the result of applying each function left-to-right to the argument list.
test not run
(= [21 6 1] ((__ + max min) 2 3 5 1 6 4))
test not run
(= ["HELLO" 5] ((__ #(.toUpperCase %) count) "hello"))
test not run
(= [2 6 4] ((__ :a :c :b) {:a 2, :b 4, :c 6, :d 8 :e 10}))
Special Restrictions
  • juxt


  • Code which fills in the blank: