(assoc-some m k v)
Associate key k to value v in map m if v is not nil.
Associate key k to value v in map m if v is not nil.
(find-first pred coll)
Given a reducible coll, returns first element for which predicate is true. Returns nil when no such element is found.
Given a reducible coll, returns first element for which predicate is true. Returns nil when no such element is found.
(find-last pred coll)
Given a reducible coll, returns last element for which predicate is true. Returns nil when no such element is found.
Given a reducible coll, returns last element for which predicate is true. Returns nil when no such element is found.
(fixpt f x)
Repeatedly calls (f x), (f (f x)), (f (f (f x))) etc until we get the same element with further function applications.
Repeatedly calls (f x), (f (f x)), (f (f (f x))) etc until we get the same element with further function applications.
(iterations f x)
Returns an eduction of x, (f x) (f (f x)), ... while the value is not nil.
Returns an eduction of x, (f x) (f (f x)), ... while the value is not nil.
(mod-stack-top-conj stack & items)
Conjoins an element to the top item of a stack.
Conjoins an element to the top item of a stack.
(mod-stack-top-last stack f & args)
Updatest last element of top elem of stack.
Updatest last element of top elem of stack.
(stacks-difference-key key-fn stack1 stack2)
Removes suffixes of two lists where key-fn gives the same result.
Removes suffixes of two lists where key-fn gives the same result.
(update-peek xs f & args)
Updates top element of a stack.
Updates top element of a stack.
Like clojure.zip/xml-zip but more flexible. Only maps are considered branches.
Like clojure.zip/xml-zip but more flexible. Only maps are considered branches.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close