fancy-app

Scala-style anonymous functions


Keywords
syntax
License
MIT

Documentation

(map (+ 1 _) (list 1 2 3))
(map (- 1 _) (list 1 2 3))
(map (- _ 1) (list 1 2 3))
(map (- _ _) (list 10 20 30) (list 1 2 3)) ;; => (list 9 18 27)

(+ 1 (+ _ 2)) ;; => +: expected number, got #<procedure>