Liking cljdoc? Tell your friends :D

noon.utils.mapsets

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`.
raw docstring

$clj

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.
raw docstring

++clj

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.
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.
raw docstring

->updclj

(->upd x)
(->upd x & xs)

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.
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.
raw docstring

mkclj


shrinkclj

(shrink s x)

Filters a mapset using the noon.utils.maps/match mecanism.

Filters a mapset using the `noon.utils.maps/match` mecanism.
raw docstring

splitclj

(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.
raw docstring

split-updclj

(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/++`.
raw docstring

updclj

Thread the mapset s through given updates.

Thread the mapset `s` through given updates.
raw docstring

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

× close