This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-30
Channels
- # announcements (7)
- # beginners (103)
- # boot (62)
- # cider (14)
- # clara (10)
- # cljdoc (4)
- # cljs-dev (2)
- # cljsrn (2)
- # clojure (51)
- # clojure-dev (15)
- # clojure-europe (13)
- # clojure-italy (25)
- # clojure-japan (3)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-uk (9)
- # clojurescript (72)
- # clojureverse-ops (2)
- # community-development (2)
- # core-async (35)
- # cursive (16)
- # datascript (1)
- # datomic (12)
- # duct (2)
- # emacs (2)
- # fulcro (9)
- # graphql (5)
- # hoplon (5)
- # leiningen (3)
- # luminus (1)
- # nyc (1)
- # off-topic (41)
- # other-languages (1)
- # pathom (16)
- # pedestal (2)
- # re-frame (44)
- # reitit (1)
- # shadow-cljs (33)
- # spacemacs (12)
- # test-check (9)
- # tools-deps (15)
- # vim (4)
Namaste
manco da Londra ormai da anni quindi sono un po' arrugginito con la logistica da quelle parti
Mi sa che passo purtroppo. Fosse stato un po’ prima ce l’avrei anche fatta. Spero ci sia qualcun altro della compagine londinese a farti compagnia :)
canary wharf non mi dispiace quando il tempo bello, ci sono vari posticini “fronte lago”
niente di particolarmente exciting per il regular clojurian https://www.finos.org/hosted-events/2019-05-01-finos-members-meeting-london
anche se on stage ci sono cose (IMO) fighe tipo https://github.com/jpmorganchase/perspective
C'ho un problema che vorrei capire come risolvere in modo "elegante": in pratica devo costruire un albero partendo da un map e costruirlo ricorsivamente
;input
{:type :root :children [obj1 obj2]}
;output
{:type :root :children [{:type :branch :children [{:type :leaf :value 1} {:type :leaf :value 2}] {:type :branch :children [{:type :leaf :value 3} {:type :leaf :value 4}]}]}
Non mi e’ chiaro @justalanm . Non riesco a fare un match dell’input che hai qui sopra con l’output che vuoi ottenere. Da dove vengono fuori i vari value? E’ cosa stabilisce la loro gerarchia?
se ho capito bene, qualcosa come (defn expand [{:keys [children] :as m}] (assoc m :children (mapv (comp expand obj->map) children)))