(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.
(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
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close