A utility ns to deal with sets of maps.
It is a thin layer built on top of noon.utils.maps
.
A utility ns to deal with sets of maps. It is a thin layer built on top of `noon.utils.maps`.
Maps the given updates over elements of s
.
Each update has to be a valid noon.utils.maps/->upd
argument.
Maps the given updates over elements of `s`. Each update has to be a valid `noon.utils.maps/->upd` argument.
Merge several mapset(able) things into a mapset. Valid arguments are:
Merge several mapset(able) things into a mapset. Valid arguments are: - regular mapsets - maps (that will be interpreted as a mapset of 1 element). - seqs of mapset(able) that will be merged on after the other using this function. - nil, that is equivalent to the empty set.
(->upd x)
(->upd x & xs)
Build a mapset update using given arguments. arguments have to be either:
noon.utils.maps/->upd
and mapped over the received mapset.Build a mapset update using given arguments. arguments have to be either: - functions, that will be applied to the received mapset - maps, that will be turned into map-updates using `noon.utils.maps/->upd` and mapped over the received mapset.
(shrink s x)
Filters a mapset using the noon.utils.maps/match
mecanism.
Filters a mapset using the `noon.utils.maps/match` mecanism.
(split s x)
split mapset s
according to x
using the noon.utils.maps/match
function.
split mapset `s` according to `x` using the `noon.utils.maps/match` function.
(split-upd s check f)
noon.utils.mapsets/split
mapset s
using check
,
noon.utils.mapsets/upd
the matching subset using f
,
merge the updated subset into the remaining elements using noon.utils.mapsets/++
.
`noon.utils.mapsets/split` mapset `s` using `check`, `noon.utils.mapsets/upd` the matching subset using `f`, merge the updated subset into the remaining elements using `noon.utils.mapsets/++`.
Thread the mapset s
through given updates.
Thread the mapset `s` through given updates.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close