This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-23
Channels
- # beginners (8)
- # boot (87)
- # cider (16)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (27)
- # clojure-austin (2)
- # clojure-beijing (1)
- # clojure-belgium (1)
- # clojure-russia (66)
- # clojure-uk (17)
- # clojurescript (48)
- # core-typed (1)
- # cursive (3)
- # datomic (8)
- # emacs (7)
- # funcool (3)
- # hoplon (22)
- # instaparse (1)
- # jobs-discuss (4)
- # leiningen (2)
- # om (17)
- # onyx (16)
- # reactive (2)
- # reagent (7)
- # rum (2)
- # specter (1)
- # untangled (3)
is there a clojure function like zipmap, but will collect values in a seq, if the key is the same?
`[:a :b :a] [1 2 3] => {:a [1 3] :b [2]}
zipmap-with-concat:
(->> (interleave coll-a (map (partial conj '()) coll-b))
(partition 2)
(map (partial apply hash-map))
(apply merge-with concat))
For unit testing, is there a best-of-breed to use with clojure.test for mocking/stubbing? I've found https://github.com/amitrathore/conjure , which looks like it serves my purpose, but was wondering if there's a newer thing out there everyone is using I wasn't privy to. (Or is with-redefs-fn all you really need?) I'm trying to stub out functions that talk to a database, so that I don't need an actual database to run tests. Thanks!
I reckon you might get more info from http://clojuredocs.org/clojure.core/var and links to more info/terminology