This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-11
Channels
- # announcements (15)
- # aws (11)
- # babashka (13)
- # babashka-sci-dev (2)
- # beginners (63)
- # calva (20)
- # cider (9)
- # clj-kondo (27)
- # clojars (3)
- # clojure (34)
- # clojure-art (4)
- # clojure-europe (21)
- # clojure-filipino (1)
- # clojure-indonesia (1)
- # clojure-my (1)
- # clojure-nl (11)
- # clojure-norway (10)
- # clojure-sg (1)
- # clojure-spec (4)
- # clojure-uk (4)
- # clojurescript (5)
- # cursive (8)
- # deps-new (2)
- # events (1)
- # exercism (2)
- # fulcro (44)
- # graphql (6)
- # gratitude (1)
- # introduce-yourself (1)
- # jobs (3)
- # leiningen (5)
- # lsp (26)
- # membrane (18)
- # missionary (9)
- # off-topic (1)
- # pedestal (4)
- # portal (1)
- # quil (24)
- # re-frame (17)
- # reagent (5)
- # remote-jobs (2)
- # reveal (3)
- # spacemacs (4)
- # tools-build (1)
- # tools-deps (12)
One more chance to complete the 2022 Clojure Survey!! https://www.surveymonkey.com/r/clojure2022
Hi. I’m used to things like spread syntax from “other languages”, e.g. [a …b c]
. What’s the right way to do that in cljs? i.e:
[a b c] -> [a b1 b2 b3 c]
?
✅ 1
Here's a fun one, altho I'm not sure it's recommended practice:
(let [a 1
b [2 3 4]
c 5]
`[~a [email protected] ~c])
Have a look at flatten
, as in:
> (flatten [1 [2 3 4] 5])
(1 2 3 4 5)
I mean there’s flatten but not if eg c is also structured