This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-22
Channels
- # announcements (8)
- # architecture (1)
- # beginners (49)
- # calva (7)
- # cljdoc (7)
- # cljs-dev (4)
- # clojure (44)
- # clojure-italy (1)
- # clojure-spec (12)
- # clojurescript (88)
- # community-development (2)
- # cursive (8)
- # datomic (16)
- # fulcro (15)
- # immutant (3)
- # joker (10)
- # keechma (4)
- # lambdaisland (1)
- # luminus (7)
- # pathom (1)
- # qa (2)
- # re-frame (11)
- # reitit (8)
- # remote-jobs (1)
- # rewrite-clj (10)
- # shadow-cljs (1)
- # slack-help (2)
- # sql (1)
- # tools-deps (2)
- # vim (4)
- # xtdb (3)
perc
is a fun little library for exploring alternative anonymous function syntaxes. Adds grabbing values by key name, in addition to the existing anonymous syntax, like #%/%(Point. %:x %:y %:z)
Those and more features explained here https://github.com/johnmn3/perc
👍 12

if I were to do #%/%(some-fn %2:x %1y ... x)
would the x be bound, or will I have to repeat the %2:x
The symbols don't result in bindings. They pull the values out. %:akey
is pretty much translated directly into (:akey %)
so %:x %:y assume the function is passed a map {:x 1 :y 2}
I wasn't clear on if it was just positional or doing some desructuring