This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-26
Channels
- # adventofcode (15)
- # beginners (7)
- # cider (2)
- # clojure (42)
- # clojure-austin (1)
- # clojure-europe (4)
- # clojure-nl (2)
- # clojurescript (19)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (30)
- # graphql (8)
- # hoplon (28)
- # hyperfiddle (16)
- # jobs (1)
- # off-topic (2)
- # philosophy (1)
- # re-frame (1)
- # shadow-cljs (30)
- # vim (3)
@sova merge
is for maps, conj
or into
for vectors. For strings you just need to call str
instead like this https://clojurians.slack.com/archives/C053AK3F9/p1545767292241800
Hey guys, I have some java code (and its corresponding tests in junit) in my clojure project. I have been trying to run the junit tests using lein but have been unsuccessful so far. lein-junit
is not running any tests. Has anyone else faced this problem?
Why does conj
add an element at the beginning of a vector? (conj (drop-last 2 [[3 6] [1 1] [2 3] [2 5]]) [1 3])
returns ([1 3] [3 6] [1 1])
while I expect it to return ([3 6] [1 1] [1 3] )
. I also read that "The 'addition' may happen at different 'places' depending on the concrete type.". Where can I read more about this behaviour?
Yes, that’s it. conj
appends to the tail of a vector, but appends to the head of a seq (which is what you get back from drop-last
)