This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-01
Channels
- # admin-announcements (2)
- # aleph (1)
- # aws-lambda (14)
- # beginners (6)
- # boot (34)
- # carry (71)
- # cider (8)
- # cljs-dev (3)
- # cljsjs (3)
- # clojure (40)
- # clojure-belgium (1)
- # clojure-greece (182)
- # clojure-mexico (1)
- # clojure-poland (8)
- # clojure-quebec (1)
- # clojure-russia (72)
- # clojure-spec (30)
- # clojure-uk (120)
- # clojurescript (62)
- # cursive (3)
- # datomic (17)
- # euroclojure (5)
- # hoplon (26)
- # keechma (6)
- # mount (3)
- # off-topic (2)
- # om (5)
- # onyx (4)
- # other-languages (3)
- # parinfer (2)
- # pedestal (2)
- # planck (30)
- # re-frame (81)
- # reagent (31)
- # spacemacs (7)
- # spirituality-ethics (21)
- # testing (10)
- # untangled (80)
Is there a way to check function documentation within the repl?
I'd be really surprised if there wasn't, given that you can store doc info straight in defn
Ah, found it, doc
in clojure.repl
. Awesome.
@montanonic: there is also a source
function to show you the source code of a given function. Very handy.
I’m trying to dry up some queries that all use the same query shape with different attributes.
(defn simple-search-query [attrs]
[:find '?e
:in '$ '?term
:where
(apply list 'or-join '[?e ?term]
(map (fn [attr]
(let [sym (gensym)]
(list 'and ['?e attr sym]
[(list 'some.fn/match? '?term sym)])))
attrs))])
(simple-search-query [:some/name :some/code])
This returns the correct data structure, but I need to quote the result of the simple-search-query fn. My macro/quoting fu is weak. Any suggestions?