This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-24
Channels
- # architecture (4)
- # aws (1)
- # beginners (76)
- # boot (172)
- # cider (17)
- # cljs-dev (10)
- # cljs-experience (24)
- # cljsrn (45)
- # clojure (129)
- # clojure-berlin (1)
- # clojure-finland (1)
- # clojure-italy (8)
- # clojure-seattle-old (1)
- # clojure-sg (1)
- # clojure-spec (31)
- # clojure-uk (28)
- # clojurescript (88)
- # cursive (11)
- # data-science (1)
- # datomic (44)
- # fulcro (48)
- # hoplon (5)
- # jobs (3)
- # jobs-discuss (1)
- # leiningen (6)
- # luminus (42)
- # lumo (17)
- # off-topic (9)
- # om (29)
- # onyx (15)
- # pedestal (7)
- # protorepl (20)
- # re-frame (24)
- # reagent (46)
- # ring-swagger (2)
- # specter (2)
- # sql (3)
- # uncomplicate (58)
- # unrepl (29)
- # yada (5)
@mdallastella auguri! Se Linkedin non mente...
Grazie mille @mbarbieri 🙂
@kors (* 9 4)
😄
Parlando di reduce-kv
, la versione transient e' circa il 50% piu' veloce:
(persistent! (reduce-kv (fn [m k v] (assoc! m k v)) (transient {}) a-map))
Mentre per lavori heavy-duty (transformazioni pesanti su chiavi o valori), c'e' sempre la versione parallel:
(r/fold (r/monoid merge (constantly {})) (fn [m k v] (assoc m k v)) a-map)