Better HN
topnewbestaskshowjobs
Log inSign up

luminous_arbour

1 karma · joined Nov 4, 2018 (8y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

The Clojure standard library has had the the 'as->' macro for a while which serves the same purpose as the "magic wand". It doesn't need to use '<>' as the identifier, but I usually choose to do so because I learned about the magic wand library before I learned about the 'as->' macro.

  (as-> {} <> 
      ...
      (add-age 21 <>)
      ...)