Liking cljdoc? Tell your friends :D

noon.utils.maps

A namespace to deal with simple maps (nestable) holding data only, nested functions are interpreted as updates not values.

A namespace to deal with simple maps (nestable) holding data only,
nested functions are interpreted as updates not values.
raw docstring

++clj

Deeply merge several maps together using noon.utils.maps/value-merge.

Deeply merge several maps together using `noon.utils.maps/value-merge`.
raw docstring

->updclj

(->upd x)

Turns a function or a map into a map update.

Turns a function or a map into a map update.
raw docstring

checkclj

(check m b)

Check if the result of updating m using b is a deeply truthy map.

Check if the result of updating `m` using `b` is a deeply truthy map.
raw docstring

matchclj

(match m x)

Check if the map m is matching with x. x can either be

  • a function that,when applied to m can return a deeply truthy map indicating a match,
  • another map from which each subvalues will be match against corresponding subvalues of m subvalues of x can be regular values that will be check for equality or functions that will be applyed to corresponding subvalues of m in order to determine if the match is successful or not.
Check if the map `m` is matching with `x`.
`x` can either be
 - a function that,when applied to `m` can return a deeply truthy map indicating a match,
 - another map from which each subvalues will be match against corresponding subvalues of `m`
   subvalues of `x` can be regular values that will be check for equality
   or functions that will be applyed to corresponding subvalues of `m` in order to determine
   if the match is successful or not.
raw docstring

updclj

Thread m through given updates. Updates has to be valid arguments to the noon.utils.maps/->upd function.

Thread `m` through given updates.
Updates has to be valid arguments to the `noon.utils.maps/->upd` function.
raw docstring

upd_clj

(upd_ & fs)

Compose several map updates together.

Compose several map updates together.
raw docstring

value-mergeclj

(value-merge x y)

The function used to merge values of maps

The function used to merge values of maps
raw docstring

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

× close