Skip to content

Instantly share code, notes, and snippets.

View smihica's full-sized avatar

Shin Aoyama smihica

View GitHub Profile
@smihica
smihica / CommonLisp
Created December 15, 2011 06:10
lambda短縮マクロ ref: http://qiita.com/items/1380
;; #[+ 1 2]
;; => #'(lambda () (+ 1 2))
;;
;; #[+ _ 1]
;; => #'(lambda (_) (+ _ 1))
;;
;; #[if (< _0 10) (+ _1 2) (+ (- 100 _0) _2)]
;; => #'(lambda (_0 _1 _2) (if (< _0 10) (+ _1 2) (+ (- 100 _0) _2)))
> (funcall #[+ 10 100])