Liking cljdoc? Tell your friends :D

lang-utils.core


apply-valuesclj/s

(apply-values m f & ks)
http://blog.jayfields.com/2011/01/clojure-select-keys-select-values-and.html
raw docstring

contains+?clj/s


contains-any?clj/s

(contains-any? m xs)

Returns true if map m contains any key defined in sequence xs

Returns true if map m contains any key defined in sequence xs
raw docstring

contains-nested?clj/s


contains?-anyclj/s


deep-contains?clj/s

(deep-contains? m k)

Version of clojure.core/contains? that works with nested maps

Version of clojure.core/contains? that works with nested maps
raw docstring

find-anyclj/s

(find-any m xs)

Returns first key found in map m supplied by sequence of keys xs

Returns first key found in map m supplied by sequence of keys xs
raw docstring

find-nestedclj/s

(find-nested m k)

nestcljmacro

(nest & forms)

Nesting macro, puts every form as the last of the previous one.

This has the effect of flattening if, when, let, etc. by putting the else (for if) or the last (and often single) expression of the body (for when, let, loop etc.) out and after the form.

This keeps the main code path vertical, while special cases branch out of the main path.

Nesting macro, puts every form as the last of the previous one.

This has the effect of flattening if, when, let, etc. by putting the else
(for if) or the last (and often single) expression of the body (for when,
let, loop etc.) out and after the form.

This keeps the main code path vertical, while special cases branch out
of the main path.
raw docstring

seekclj/s

(seek pred coll)
(seek pred coll not-found)

Returns first item from coll for which (pred item) returns true. Returns nil if no such item is present, or the not-found value if supplied.

Usage: (seek even? [1 2 3 4]) => 2

Returns first item from coll for which (pred item) returns true.
 Returns nil if no such item is present, or the not-found value if supplied.

Usage: (seek even? [1 2 3 4]) => 2
raw docstring

select-nested-keysclj/s


select-pathsclj/s

(select-paths m paths)

select-valuesclj/s

(select-values m ks)
http://blog.jayfields.com/2011/01/clojure-select-keys-select-values-and.html
raw docstring

sliceclj/s

(slice n coll)

Divide coll into n approximately equal slices.

Divide coll into n approximately equal slices.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close