Liking cljdoc? Tell your friends :D
Clojure only.

code.query.match.optional


pattern-seqclj

(pattern-seq pattern)

generate a sequence of possible matches (pattern-seq '(+ ^:? (1) ^:? (^:? + 2))) => '((+) (+ (1)) (+ (2)) (+ (1) (2)) (+ (+ 2)) (+ (1) (+ 2)))

generate a sequence of possible matches
(pattern-seq '(+ ^:? (1) ^:? (^:? + 2)))
=> '((+)
     (+ (1))
     (+ (2))
     (+ (1) (2))
     (+ (+ 2))
     (+ (1) (+ 2)))
raw docstring

tag-metaclj

(tag-meta ele out)

increment a counter everytime a :? element is seen (let [out (atom {:? -1})] (tag-meta ^:? () out) @out) => {:? 0}

increment a counter everytime a `:?` element is seen
(let [out (atom {:? -1})]
  (tag-meta ^:? () out)
  @out)
=> {:? 0}
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close