Special Forms and Syntax Sugars in Clojure

  • (...): function literals, p40, 64;

  • '(...): suppress evaluation, p24;

  • _(...): comments, p18;

  • "...": regular expression, p17;

  • (def x y): bind x to y;

  • (fn [parameters] (function-body)): define a function;

  • (defn func-name [parameters] (body)): define a function and bind it to "func-name";

  • (let [s1 v1 s2 v2 ...] (body))

posted on 2014-03-17 18:20  leechau  阅读(107)  评论(0编辑  收藏  举报

导航