This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-13
Channels
- # admin-announcements (4)
- # beginners (14)
- # boot (41)
- # capetown (1)
- # carry (10)
- # clojure (168)
- # clojure-czech (11)
- # clojure-mexico (3)
- # clojure-quebec (1)
- # clojure-russia (63)
- # clojure-spec (108)
- # clojure-uk (44)
- # clojurescript (37)
- # component (5)
- # data-science (2)
- # datascript (5)
- # datomic (3)
- # defnpodcast (9)
- # dirac (14)
- # emacs (18)
- # events (1)
- # funcool (2)
- # garden (2)
- # hoplon (48)
- # leiningen (6)
- # numerical-computing (1)
- # off-topic (8)
- # om (61)
- # onyx (22)
- # proton (14)
- # re-frame (50)
- # reagent (2)
- # uncomplicate (1)
- # untangled (41)
- # vim (5)
- # yada (5)
@krchia: Which version of Clojure are you seeing that on? (I think I'm reading this correctly that you're seeing different results from running the same expression multiple times, right?)
I tried it on Clojure 1.9 and always got the second result...
(map * [1 2] [3 4])
is more succinct, though that may or may not be desirable
Nevermind, sorry, you already got there, I misread
(apply map * [[1 2] [3 4]])
@krchia: Did you see my question to you above, posted last night?
In your posted snippet, they were identical — copy’n’paste error perhaps? At least that explains why I didn’t repro your results 🙂