This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-13
Channels
- # aleph (6)
- # announcements (10)
- # asami (3)
- # babashka (111)
- # babashka-sci-dev (20)
- # beginners (28)
- # calva (28)
- # clj-http (2)
- # clj-kondo (23)
- # cljs-dev (16)
- # cljsrn (23)
- # clojure (116)
- # clojure-czech (3)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (41)
- # community-development (2)
- # cursive (5)
- # datahike (4)
- # datomic (13)
- # figwheel-main (3)
- # fulcro (11)
- # google-cloud (1)
- # gratitude (8)
- # hyperfiddle (14)
- # jobs (2)
- # lsp (22)
- # malli (4)
- # off-topic (4)
- # other-languages (4)
- # pathom (13)
- # portal (40)
- # rdf (11)
- # reitit (1)
- # sci (15)
- # shadow-cljs (7)
- # specter (1)
- # sql (6)
- # xtdb (4)
some wip code of what I try to do:
(def
input
{:ordering [:gem_value]
:coll-meta
{:eth_addr
{:transform str}
}})
(specter/transform
[specter/ALL
specter/ALL
(specter/selected?
(specter/view first)
(:coll-meta input))]
(fn [[k v]]
[k ((-> input :coll-meta k :transform) v)])
[{:eth_addr 10 :fo "fo" :bar 9}])
;; [{:eth_addr "10", :fo "fo", :bar 9}]
I like the user to define some transform function on keys. Maybe I'm thinking to complicated?