2010-04-20から1日間の記事一覧
macroexpand は展開結果をリストじゃなくてシーケンスで返してくるのにちょっと驚いた。 user> (macroexpand '(-> 1 (+ 2) (- 3))) (- (clojure.core/-> 1 (+ 2)) 3) user> (type (macroexpand '(-> 1 (+ 2) (- 3)))) clojure.lang.Cons user> (seq? (macroe…
macroexpand は展開結果をリストじゃなくてシーケンスで返してくるのにちょっと驚いた。 user> (macroexpand '(-> 1 (+ 2) (- 3))) (- (clojure.core/-> 1 (+ 2)) 3) user> (type (macroexpand '(-> 1 (+ 2) (- 3)))) clojure.lang.Cons user> (seq? (macroe…