This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-24
Channels
- # beginners (19)
- # boot (118)
- # capetown (4)
- # cider (37)
- # cljs-dev (69)
- # cljsjs (23)
- # clojure (212)
- # clojure-austin (10)
- # clojure-india (3)
- # clojure-italy (2)
- # clojure-mke (1)
- # clojure-nl (1)
- # clojure-russia (5)
- # clojure-spec (52)
- # clojure-uk (86)
- # clojurescript (31)
- # core-async (9)
- # cursive (123)
- # datomic (91)
- # emacs (22)
- # events (3)
- # hoplon (68)
- # klipse (4)
- # lambdaisland (10)
- # leiningen (2)
- # off-topic (14)
- # om (14)
- # onyx (44)
- # perun (14)
- # proton (20)
- # re-frame (15)
- # reagent (10)
- # ring-swagger (9)
- # specter (18)
- # untangled (3)
- # vim (26)
- # yada (4)
I found it @val_waeselynck! It was me being silly and not adding the right dependency *sigh* … thanks for your help!
@codxse How about constructing a list from the elements in expr and then eval'ing them?
Whoops didn't see that had already been suggested
once again, if quote doesn't resolve to its value, what about syntax quote? here my code again:
karolisl you might want to take a look at spec: https://clojure.org/guides/spec
(let [{:keys [a b] :as x} {:k 1}]
a)
I would expect that to return a :k, but it returns nil. meanwhile
(let [{:keys [a b] :as x} {:k 1}]
x)
returns {:k 1} as i would expect.ok right, i know why
got my wires crossed, thats looking for the values to those keys
take a look at this, should clear things up 🙂 https://clojure.org/guides/destructuring#_associative_destructuring