Liking cljdoc? Tell your friends :D

lucid.query.common


anyclj

(any x)

returns true for any value (any nil) => true (any '_) => true

returns true for any value
(any nil) => true
(any '_) => true
raw docstring

cursor?clj

(cursor? ele)

checks if element is | (cursor? '|) => true (cursor? '_) => false

checks if element is `|`
(cursor? '|) => true
(cursor? '_) => false
raw docstring

deletion?clj

(deletion? ele)

checks if element has a delete meta (deletion? '^:- a) => true (deletion? 'a) => false

checks if element has a delete meta
(deletion? '^:- a) => true
(deletion? 'a) => false
raw docstring

expand-metaclj

(expand-meta ele)

separates out the meta into individual flags (meta (expand-meta ^:? ())) => {:? true} (meta (expand-meta ^:+%? ())) => {:+ true, :? true, :% true}

separates out the meta into individual flags
(meta (expand-meta ^:? ()))
=> {:? true}
(meta (expand-meta ^:+%? ()))
=> {:+ true, :? true, :% true}
raw docstring

find-indexclj

(find-index pred seq)
(find-index pred [x & more :as seq] idx)

returns the index of the first occurrence (find-index #(= 2 %) '(1 2 3 4)) => 1

returns the index of the first occurrence
(find-index #(= 2 %) '(1 2 3 4))
=> 1
raw docstring

fintoclj

(finto to from)

into but the right way for lists (finto () '(1 2 3)) => '(1 2 3)

into but the right way for lists
(finto () '(1 2 3))
=> '(1 2 3)
raw docstring

insertion?clj

(insertion? ele)

checks if element has an insert meta (insertion? '^:+ a) => true (insertion? 'a) => false

checks if element has an insert meta
(insertion? '^:+ a) => true
(insertion? 'a) => false
raw docstring

noneclj

(none x)

returns false for any value (none nil) => false (none '_) => false

returns false for any value
(none nil) => false	
(none '_) => false
raw docstring

prepare-deletionclj

(prepare-deletion pattern)

removes extraneous symbols for deletion walk (prepare-deletion '(+ a 2)) => '(+ a 2)

(prepare-deletion '(+ ^:+ a | 2)) => '(+ 2)

removes extraneous symbols for deletion walk
(prepare-deletion '(+ a 2))
=> '(+ a 2)

(prepare-deletion '(+ ^:+ a | 2))
=> '(+ 2)
raw docstring

prepare-insertionclj

(prepare-insertion pattern)

removes extraneous symbols for deletion walk (prepare-insertion '(+ a 2)) => '(+ a 2)

(prepare-insertion '(+ ^:+ a | ^:- b 2)) => '(+ a 2)

removes extraneous symbols for deletion walk
(prepare-insertion '(+ a 2))
=> '(+ a 2)

(prepare-insertion '(+ ^:+ a | ^:- b 2))
=> '(+ a 2)
raw docstring

prepare-queryclj

(prepare-query pattern)

removes extraneous symbols for query walk

(prepare-query '(+ ^:+ a | ^:- b 2)) => '(+ 2)

removes extraneous symbols for query walk

(prepare-query '(+ ^:+ a | ^:- b 2))
=> '(+ 2)
raw docstring

prewalkclj

(prewalk f form)

helper function for changing elements eagerly

helper function for changing elements eagerly
raw docstring

remove-itemsclj

(remove-items pred pattern)

removes items from a form matching the predicate (remove-items #(= 1 %) '(1 2 3 4)) => '(2 3 4)

(remove-items #(= 1 %) '(1 (1 (1 (1))))) => '(((())))

removes items from a form matching the predicate
(remove-items #(= 1 %) '(1 2 3 4))
=> '(2 3 4)

(remove-items #(= 1 %) '(1 (1 (1 (1)))))
=> '(((())))
raw docstring

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

× close