if i have a list of functions:
(def lst '(+ -))
and i wish to apply the first of that list (+) to a list of numbers, i would think its
(apply (first lst) '(1 2 3 4))
but apparently i am wrong? syntax mistake i assume. how do i do this?
PS:
=>(first lst)
+=>(apply (first lst) '(1 2 3 4))
4
both return without error, they just return what i WOULD expect in the first case, and what i would NOT expect in the second.