This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-13
Channels
- # announcements (4)
- # babashka (8)
- # beginners (28)
- # calva (20)
- # clerk (3)
- # clj-kondo (5)
- # clojure (50)
- # clojure-conj (1)
- # clojure-dev (69)
- # clojure-europe (52)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-uk (1)
- # clojurescript (5)
- # copenhagen-clojurians (1)
- # cursive (4)
- # datascript (1)
- # datomic (8)
- # fulcro (2)
- # funcool (1)
- # garden (2)
- # helix (2)
- # holy-lambda (2)
- # hyperfiddle (27)
- # introduce-yourself (6)
- # jobs-discuss (4)
- # lsp (3)
- # membrane (1)
- # off-topic (34)
- # react (4)
- # releases (1)
- # shadow-cljs (23)
- # tools-deps (11)
- # xtdb (4)
I want this same result:
(->> {:one "one" :two "two" :three "three"} vec flatten)
;; => (:one "one" :two "two" :three "three")
I feel like I might be missing a single function that does this?(mapcat seq {:one "one" :two "two" :three "three"})
also does it - but still seems like it should be more simple.
iterleave its keys and values. but be aware that you are going from an unordered structure to an ordered one. The way you "see" the map or think it should order might not be what you end up with.
well, what I do care about is that the pairs stay next to each other. I don’t care about the order of the pairs themselves.
Oh yeah - ok, cool. I’m finding lots of ways to do this I see. I haven’t run into interleave yet - thanks for pointing it out!
👍 1