This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-09
Channels
- # announcements (5)
- # babashka (1)
- # beginners (116)
- # calva (139)
- # cider (11)
- # clara (2)
- # clj-kondo (13)
- # clojure (247)
- # clojure-dev (18)
- # clojure-europe (5)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (41)
- # cursive (11)
- # data-science (2)
- # datomic (33)
- # emacs (10)
- # events (3)
- # fulcro (134)
- # graphql (9)
- # jackdaw (3)
- # jobs (1)
- # joker (20)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # malli (3)
- # music (1)
- # pedestal (7)
- # re-frame (25)
- # remote-jobs (7)
- # ring (7)
- # shadow-cljs (85)
- # spacemacs (13)
- # testing (2)
- # tools-deps (60)
- # xtdb (11)
- # yada (7)
morning
shame about the Glasgow clojurians meetup
anyone got office space in the central belt of Scotland that they are prepared to let a meetup use?
we've got Hugh in Edinburgh and you in Dundee and me in Perth
theres a CodeBase in Stirling
question my google foo is failing me on. I'd like to do an into
trasducer over 2 seqs. In non-transducer fashion I could do:
(into []
(map (fn [x y] (vector x y)) seq-1 seq-2))
I'd like to be able to do something like
(into []
(map (fn [x y] (vector x y)))
seq-1
seq-2)
I suppose the only way I can do it is by the following?
(into []
(map (fn [x] (identity x))
(map (fn [x y] (vector x y))))
so I have the one extra map at the beginning making my pairs to feed in, but the rest of the into transducer would be the same?
Sequence will let you pass multiple colls and map will accept them, but into won’t
(into [] (sequence (map (fn [x y] (vector x y)) seq-1 seq-2))
might work, but not sure if it’s legit, might be one for http://ask.clojure.org
interesting. I don't use sequence much. I mostly use into
and transduce
as those are the ones I've got my head around
into
is eager
sequence
is lazy
there aren't many lazy bits around transducers, so that gives it a rarity value
(`eduction` is sometimes lazy)
but I think its only those two...?
unless someone can remember otherwise