This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-24
Channels
- # beginners (12)
- # cider (3)
- # clara (3)
- # cljs-dev (3)
- # cljsrn (19)
- # clojure (83)
- # clojure-android (1)
- # clojure-dev (15)
- # clojure-dusseldorf (1)
- # clojure-greece (30)
- # clojure-italy (10)
- # clojure-madison (1)
- # clojure-nl (6)
- # clojure-russia (274)
- # clojure-spec (51)
- # clojure-uk (31)
- # clojurescript (38)
- # core-async (7)
- # cursive (11)
- # datascript (1)
- # datomic (63)
- # emacs (10)
- # figwheel (1)
- # hoplon (27)
- # jobs (11)
- # klipse (4)
- # lein-figwheel (1)
- # lumo (6)
- # nyc (1)
- # off-topic (278)
- # om (12)
- # pedestal (10)
- # protorepl (31)
- # re-frame (13)
- # reagent (23)
- # remote-jobs (1)
- # spacemacs (9)
- # untangled (24)
- # yada (54)
mobileink20:05:18
forget about bitcoin. blockchain technology is general. also a magical wtf? what is clojure doing with it?
noisesmith20:05:47
clojure isn’t appropriate for stuff that is intentionally CPU intensive like that, it’s easier to write java that does numerics efficiently than it is to make clojure do so
bj20:05:04
I need a macro that takes a hashmap and an expression, and stores the expression as the key in a new hash-map and the evaluation of the expression as its value. So, for example
(bla {} (+ 1 1)) ; should yield {([clojure.core/+] 1 1) 2}
This is what I've got so far (defmacro bla
[hm expr]
`(assoc ~hm (list [email protected]) ~expr))
Is this the right approach?