Liking cljdoc? Tell your friends :D

macaw.util


find-relevantclj

(find-relevant m element ks)

Search the given map for the entry corresponding to [[element]], considering only the relevant keys. The relevant keys are obtained by ignoring any suffix of [[ks]] for which [[element]] has nil or missing values. We require that there is at least one relevant key to find a match.

Search the given map for the entry corresponding to [[element]], considering only the relevant keys.
The relevant keys are obtained by ignoring any suffix of [[ks]] for which [[element]] has nil or missing values.
We require that there is at least one relevant key to find a match.
sourceraw docstring

group-withclj

(group-with kf rf coll)

Generalized group-by, where you can supply your own reducing function (instead of usual conj).

https://ask.clojure.org/index.php/12319/can-group-by-be-generalized

Generalized `group-by`, where you can supply your own reducing function (instead of usual `conj`).

https://ask.clojure.org/index.php/12319/can-group-by-be-generalized
sourceraw docstring

match-componentclj

(match-component expected actual)

Check whether the given literal matches the expected literal or pattern.

Check whether the given literal matches the expected literal or pattern.
sourceraw docstring

non-sentinelclj

(non-sentinel s)

A hack around the fact that we don't (yet) track what columns are exposed by given sentinels.

A hack around the fact that we don't (yet) track what columns are exposed by given sentinels.
sourceraw docstring

seekclj

(seek pred coll)

Like (first (filter ... )), but doesn't realize chunks of the sequence. Returns the first item in coll for which pred returns a truthy value, or nil if no such item is found.

Like (first (filter ... )), but doesn't realize chunks of the sequence. Returns the first item in `coll` for which
`pred` returns a truthy value, or `nil` if no such item is found.
sourceraw docstring

strip-nilsclj

(strip-nils m)

Remove any keys corresponding to nil values from the given map.

Remove any keys corresponding to nil values from the given map.
sourceraw docstring

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

× close