RosettaCodeData/Task/Inverted-syntax/Clojure/inverted-syntax-2.clj

5 lines
166 B
Clojure
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
((fn [x] (* x x) 5) ; Define a lambda and call it with 5.
(macroexpand-1 '(->> 5 (fn [x] (* x x))))
(fn [x] (* x x) 5) ; Define a lambda that returns 5 regardless.