Anonymous function syntax

PHOTO EMBED

Thu Apr 30 2020 06:33:12 GMT+0000 (Coordinated Universal Time)

Saved by @deku

;; Equivalent to: (fn [x] (+ 6 x))
#(+ 6 %)

;; Equivalent to: (fn [x y] (+ x y))
#(+ %1 %2)

;; Equivalent to: (fn [x y & zs] (println x y zs))
#(println %1 %2 %&)
                                
content_copyCOPY

https://clojure.org/guides/learn/functions