This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-10
Channels
- # asami (2)
- # babashka (28)
- # beginners (91)
- # calva (38)
- # cider (7)
- # clj-kondo (20)
- # cljfx (3)
- # clojure (88)
- # clojure-austin (1)
- # clojure-australia (2)
- # clojure-bay-area (10)
- # clojure-europe (68)
- # clojure-france (8)
- # clojure-italy (14)
- # clojure-nl (4)
- # clojure-sanfrancisco (1)
- # clojure-uk (14)
- # clojurescript (37)
- # clojureverse-ops (14)
- # clojurewerkz (1)
- # clr (1)
- # conjure (13)
- # cursive (10)
- # datascript (30)
- # datomic (6)
- # emacs (13)
- # exercism (3)
- # fulcro (10)
- # graalvm (4)
- # graphql (2)
- # instaparse (5)
- # jobs (3)
- # kaocha (10)
- # off-topic (20)
- # pathom (17)
- # polylith (7)
- # re-frame (25)
- # remote-jobs (1)
- # shadow-cljs (60)
- # spacemacs (5)
- # specter (1)
- # startup-in-a-month (1)
- # tools-deps (48)
- # vim (4)
- # xtdb (11)
Hi there long time no see 😄
I have a question, I have something like {:image_descriptors [{:image_id "9ab5f0ec-cbe0-4cb1-bf5b-f178a7522693", :image_caption "teat"}]}
And I want to convert keys to kebab and transform the image-id
with a custom str->clj
Is it possible to achieve that in one shot with multi-transform
?
I cannot seem to have it working cause specter/MAP-KEYS
gives me:
(specter/multi-transform [specter/MAP-KEYS (specter/terminal utils/->memo-kebab-case-keyword)]
{:image_descriptors [{:image_id "9ab5f0ec-cbe0-4cb1-bf5b-f178a7522693", :image_caption "teat"}]})
=> {:image-descriptors [{:image_id "9ab5f0ec-cbe0-4cb1-bf5b-f178a7522693", :image_caption "teat"}]}