This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-03
Channels
- # aws (1)
- # bangalore-clj (3)
- # beginners (3)
- # boot (9)
- # business (1)
- # cljs-dev (72)
- # cljsjs (7)
- # clojure (86)
- # clojure-austin (1)
- # clojure-belgium (4)
- # clojure-brasil (14)
- # clojure-conj (3)
- # clojure-dev (10)
- # clojure-italy (4)
- # clojure-poland (14)
- # clojure-russia (36)
- # clojure-spec (144)
- # clojure-uk (50)
- # clojurebridge (1)
- # clojurescript (160)
- # clr (2)
- # core-async (8)
- # cursive (56)
- # datomic (34)
- # devcards (3)
- # emacs (2)
- # ethereum (1)
- # events (3)
- # hoplon (21)
- # jobs (2)
- # leiningen (9)
- # luminus (3)
- # off-topic (1)
- # om (26)
- # onyx (42)
- # pedestal (29)
- # protorepl (1)
- # re-frame (43)
- # reagent (26)
- # rethinkdb (4)
- # ring-swagger (4)
- # spacemacs (5)
- # specter (4)
- # untangled (102)
- # vim (43)
- # yada (10)
is there an a/map
but meant more fore side-effecting? I have a channel I want to map over, but I don't care about returning anything, and the fn
passed to my "`map`" is useful only for it's side-effects.
The single-arity version of map
gives you a transducer, and transduce
is eager so it supports side effects. See https://stuartsierra.com/2015/08/25/clojure-donts-lazy-effects.
I would probably just use loop
/`recur` and call the function.
@exupero ah, thank you!
would someone consider this to be a bug, or just "you shouldn't do it" kinda thing?
(defmacro bug-loop []
(go-loop []))
(bug-loop)
=> java.lang.IllegalArgumentException
Unable to resolve classname: LinkedList
yes, I did quote, but Im doing a macro where I convert symbols to text, so as soon as its quoted and unquoted everything goes south. Im doing so much macro hacking that I would rather nobody knew about it (and nobody will see it except me). I can use normal loop in this case. But if a go-loop should work like this is 99,999% no problem for anyone.