This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-12
Channels
- # announcements (10)
- # babashka (26)
- # beginners (113)
- # calva (75)
- # cider (7)
- # clj-http (1)
- # cljdoc (2)
- # cljfx (3)
- # cljs-dev (13)
- # clojure (79)
- # clojure-europe (21)
- # clojure-losangeles (2)
- # clojure-nl (4)
- # clojure-sweden (1)
- # clojure-uk (23)
- # clojureladies (4)
- # clojurescript (26)
- # clojureverse-ops (2)
- # conjure (2)
- # cursive (2)
- # data-science (1)
- # datalog (6)
- # datomic (1)
- # degree9 (2)
- # depstar (4)
- # esprit (3)
- # fulcro (25)
- # introduce-yourself (2)
- # jobs (3)
- # lsp (30)
- # meander (38)
- # missionary (9)
- # nbb (7)
- # news-and-articles (2)
- # off-topic (28)
- # pathom (46)
- # polylith (19)
- # re-frame (4)
- # reitit (2)
- # sci (8)
- # shadow-cljs (23)
- # specter (17)
- # spire (1)
- # tools-deps (16)
- # unrepl (1)
- # xtdb (30)
hi i’m trying to do a transform where i need to select a single value out of a list.. something like
{:a "a"
:b [{:name "pickme" :value "foo"} {:name "somethingelse" :value "bar" ..]}
;becomes
{:my/a "a"
:my/b "foo"}
; have tried various things with ... scan, etc but i'm obivously not doing the right thing
{...
:b [{:name "pickme" :value !value} ...]}
etc
(m/rewrite {:a "a"
:b [{:name "pickname" :value "foo"} {:name "somthingelse" :value "bar"}]}
{:a ?a
:b [{:value !value} ...]}
[{:my/a ?a
:my/b !value} ...])
;; => [#:my{:a "a", :b "foo"} #:my{:a "a", :b "bar"}]
(m/rewrite {:a "a"
:b [{:name "pickme" :value "foo"} {:name "somthingelse" :value "bar"}]}
{:a ?a
:b (m/scan {:name "pickme" :value !value})}
{:my/a ?a
:my/b !value})
;; => #:my{:a "a", :b "foo"}
(m/find {:a "a"
:b [{:name "pickme" :value "foo"} {:name "somthingelse" :value "bar"}]}
{:a ?a
:b (m/scan {:name "pickme" :value !value})}
{:my/a ?a
:my/b !value})
and if you don't need to collect multiple values, it's a better idea to use ?value
instead of !value
The learning curve of meander is very steep, I recommend to start with find
, only after that play with rewrite
, and finally recursion with cata
and with
because i know i wanted a single value ?… but in that context most of the examples are the memory vars !..
i’ll maybe add that to the docs lol. because it seems simple for a lot of common cases but, yeah there are quite a few dangerous left turns lol
Has anyone had a chance to double check if whats on epsilon right now works for them e.g. it passes tests, etc.?
[buildPlans.iosevka-custom]
family = "Iosevka Custom"
spacing = "normal"
serifs = "sans"
no-cv-ss = true
[buildPlans.iosevka-custom.variants]
inherits = "ss04"
[buildPlans.iosevka-custom.ligations]
inherits = "dlig"
A good font is essential, I admire people from the previous era who had to look at jagged angular fonts on crt monitors.