{"id":25,"date":"2013-09-17T11:52:00","date_gmt":"2013-09-17T11:52:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=25"},"modified":"2013-09-17T11:52:00","modified_gmt":"2013-09-17T11:52:00","slug":"anonymous-lambda-functions-in-clojure","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=25","title":{"rendered":"Anonymous (lambda) functions in Clojure"},"content":{"rendered":"<p>I am learning a bit of Clojure from time to time, and today I learned about shorthand notation for anonymous functions: <\/p>\n<pre><br \/>> (apply (fn [x y] (+ x y)) '(1 1))<br \/>2<br \/><\/pre>\n<p> Which is equivalent to: <\/p>\n<pre><br \/>> (apply #(+ %1 %2) '(1 1))<br \/>2<br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am learning a bit of Clojure from time to time, and today I learned about shorthand notation for anonymous functions: > (apply (fn [x y] (+ x y)) &#8216;(1 1))2 Which is equivalent to: > (apply #(+ %1 %2) &#8216;(1 1))2<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,7,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}