This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-14
Channels
- # announcements (1)
- # beginners (13)
- # calva (2)
- # cider (43)
- # cljdoc (11)
- # clojure (16)
- # clojure-spec (10)
- # clojure-uk (6)
- # clojurescript (7)
- # code-reviews (3)
- # core-matrix (1)
- # datascript (4)
- # datomic (7)
- # devcards (4)
- # figwheel-main (12)
- # fulcro (27)
- # hoplon (1)
- # lein-figwheel (1)
- # luminus (1)
- # nrepl (23)
- # off-topic (4)
- # planck (1)
- # re-frame (8)
- # reagent (7)
- # shadow-cljs (61)
- # spacemacs (7)
- # tools-deps (19)
Would somebody be able to tell me why this doesn't work? (-> [1 2 3] (filter odd?))
In the "Pull" section of the Datomic on-prem tutorial(https://docs.datomic.com/on-prem/tutorial.html#pull), db/pull
returns data that looks like this:
#:inv{:color #:db{:ident :blue}, ...}
What is the the #:inv
and #:db
? I've yet to encounter this sort of data literal/syntax.i.e. all the idents (keywords and symbols) used as keys in the map will be namespaced by the prefix
Oooooh. I had no idea. Cool. Thanks!
https://groups.google.com/forum/#!topic/clojure-dev/8tHLCm8LpyU for the introduction post
assume I want to use some java 8 features in some piece of code if that code is running under java 8, but revert to a java 6 compatible code snippet when running under java 6. Would that be possible in clojure? And how? Conditional require
call?
@d4hines You'll probably find this section of the destructuring guide helpful too https://clojure.org/guides/destructuring#_namespaced_keywords
And the reader literal syntax associated with maps is discussed here https://clojure.org/reference/reader#_maps
@bronsa, @seancorfield, all of that is clarifying. Thanks!