Liking cljdoc? Tell your friends :D

lazy-map.core

Maps that only realize their values when the value is accessed.

Maps that only realize their values when the value is accessed.
raw docstring

deep-mergeclj

(deep-merge & maps)

Deep merges maps. Preserves laziness of unrealized values in lazy maps.

Deep merges maps. Preserves laziness of unrealized values in lazy maps.
sourceraw docstring

dynamic-form?clj

(dynamic-form? x)
source

force-mapclj

(force-map map)

Realizes all the values in a lazy map, returning a regular map.

Realizes all the values in a lazy map, returning a regular map.
sourceraw docstring

freeze-mapclj

(freeze-map val map)

Replace all the unrealized values in a lazy map with placeholders, returning a regular map. No matter what is done to the returned map, the values in the original map will not be forced. v can be an object to use for all the values or a function of the key.

Replace all the unrealized values in a lazy map with placeholders,
returning a regular map. No matter what is done to the returned map,
the values in the original map will not be forced. v can be an
object to use for all the values or a function of the key.
sourceraw docstring

lazy-mapclj

(lazy-map)
(lazy-map m)

Constructs a lazy map from a map that may contain delays for values.

Constructs a lazy map from a map that may contain delays for values.
sourceraw docstring

lazy-map-entryclj

(lazy-map-entry k v)

Construct a lazy map entry with the given key and value. If you want to take advantage of the laziness, the value should be a delay.

Construct a lazy map entry with the given key and value. If you
want to take advantage of the laziness, the value should be a
delay.
sourceraw docstring

lazy-map-entry?clj

(lazy-map-entry? e)

Is e a lazy map entry?

Is e a lazy map entry?
sourceraw docstring

lazy-map?clj

(lazy-map? m)

Is m a lazy map?

Is m a lazy map?
sourceraw docstring

LazyRewritecljprotocol

rewriteclj

(rewrite form)

Rewrites form into a lazy construct.

Rewrites form into a lazy construct.
source

literal->lazy-mapcljmacro

(literal->lazy-map form)

Constructs a lazy map from a literal map. None of the values are evaluated until they are accessed from the map. Recursively converts any nested inline maps as well.

Constructs a lazy map from a literal map. None of the values are
evaluated until they are accessed from the map. Recursively converts
any nested inline maps as well.
sourceraw docstring

map-entryclj

(map-entry k v)

Creates a map entry (as returned by calling seq on a map) with the given key and value.

Creates a map entry (as returned by calling seq on a map) with the
given key and value.
sourceraw docstring

mergeclj

(merge & maps)

Merges maps. Preserves laziness of unrealized values in lazy maps.

Merges maps. Preserves laziness of unrealized values in lazy maps.
sourceraw docstring

PlaceholderTextclj

source

realized-at?clj

(realized-at? m k)

Returns false if accessing k in m would cause a delay to execute.

Returns false if accessing k in m would cause a delay to execute.
sourceraw docstring

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

× close