(def flip (f) (fn (a b) (f b a))) (def curry (f x) (fn a (apply f x a)))
Edit: apparently all of the above has been posted already :-(. Please excuse the noise.