Liking cljdoc? Tell your friends :D

lazymap.core

Lazymap is to maps what lazy-seq is to lists. It allows to store values with evaluating them. This is only done in case the value is really accessed. Lazymap works with any map type (hash-map, sorted-map, struct-map) and may be used as a drop-in replacement everywhere where a normal map type may be used.

Available macros: lazy-hash-map, lazy-sorted-map, lazy-struct-map, lazy-struct, lazy-assoc and their * counterpart functions.

Lazymap is to maps what lazy-seq is to lists. It allows to store values
with evaluating them. This is only done in case the value is really accessed.
Lazymap works with any map type (hash-map, sorted-map, struct-map) and may
be used as a drop-in replacement everywhere where a normal map type may be
used.

Available macros:
lazy-hash-map, lazy-sorted-map, lazy-struct-map, lazy-struct, lazy-assoc
and their * counterpart functions.
raw docstring

create-lazy-mapclj

(create-lazy-map base)
(create-lazy-map base metadata)

create-lazy-map-seqclj

(create-lazy-map-seq inner-seq)
(create-lazy-map-seq inner-seq metadata)

delayed-assocclj

(delayed-assoc m & kvs)

delayed-assoc is like lazy-assoc but a function and takes values as delays or futures instead of expanding into a delay/future of val.

delayed-assoc is like lazy-assoc but a function and takes values as delays
or futures instead of expanding into a delay/future of val.
raw docstring

delayed-hash-mapclj

(delayed-hash-map & kvs)

delayed-hash-map is the same as lazy-hash-map except that its a function and it takes a seq of keys-delayed-value pairs.

delayed-hash-map is the same as lazy-hash-map except that its a function
and it takes a seq of keys-delayed-value pairs.
raw docstring

delayed-sorted-mapclj

(delayed-sorted-map & kvs)

delayed-sorted-map is the same as lazy-sorted-map except that its a function and it takes a seq of keys-delayed-value pairs.

delayed-sorted-map is the same as lazy-sorted-map except that its a
function and it takes a seq of keys-delayed-value pairs.
raw docstring

delayed-structclj

(delayed-struct s & vs)

delayed-struct is the same as lazy-struct except that its a function and it takes a seq of delayed value together with the struct basis.

delayed-struct is the same as lazy-struct except that its a function and
it takes a seq of delayed value together with the struct basis.
raw docstring

delayed-struct-mapclj

(delayed-struct-map s & kvs)

delayed-struct-map is the same as lazy-struct-map except that its a function and it takes a seq of keys-delayed-value pairs together with the struct basis.

delayed-struct-map is the same as lazy-struct-map except that its a
function and it takes a seq of keys-delayed-value pairs together with the
struct basis.
raw docstring

future-assoccljmacro

(future-assoc m & kvs)

future-assoc associates new values to the given keys in the given lazy map. The values are evaluated in a separate thread. They are evaluated at most once.

future-assoc associates new values to the given keys in the given lazy map.
The values are evaluated in a separate thread. They are evaluated at most
once.
raw docstring

future-hash-mapcljmacro

(future-hash-map & kvs)

future-hash-map creates a map. The values are evaluated in a separate thread. Each value is evaluated at most once. The underlying map is a hash map.

future-hash-map creates a map. The values are evaluated in a separate
thread. Each value is evaluated at most once. The underlying map is a
hash map.
raw docstring

future-sorted-mapcljmacro

(future-sorted-map & kvs)

future-hash-map creates a map. The values are evaluated in a separate thread. Each value is evaluated at most once. The underlying map is a sorted map.

future-hash-map creates a map. The values are evaluated in a separate
thread. Each value is evaluated at most once. The underlying map is a
sorted map.
raw docstring

future-structcljmacro

(future-struct s & vs)

future-hash-map creates a map. The values are evaluated in a separate thread. Each value is evaluated at most once. The underlying map is a struct map according to the provided structure s. As with Clojure's struct the values have to appear in the order of the keys in the structure.

future-hash-map creates a map. The values are evaluated in a separate
thread. Each value is evaluated at most once. The underlying map is a
struct map according to the provided structure s. As with Clojure's
struct the values have to appear in the order of the keys in the structure.
raw docstring

future-struct-mapcljmacro

(future-struct-map s & kvs)

future-hash-map creates a map. The values are evaluated in a separate thread. Each value is evaluated at most once. The underlying map is a struct map according to the provided structure s.

future-hash-map creates a map. The values are evaluated in a separate
thread. Each value is evaluated at most once. The underlying map is a
struct map according to the provided structure s.
raw docstring

ILazyMapEntrycljprotocol

ILazyMapEntry describes the behaviour of a lazy MapEntry. It provides an additional method (over IMapEntry), which returns the raw delay object and not the forced value.

ILazyMapEntry describes the behaviour of a lazy MapEntry. It provides
an additional method (over IMapEntry), which returns the raw delay object
and not the forced value.

get-keyclj

(get-key lazy-map-entry)

Return the key of the map entry.

Return the key of the map entry.

get-raw-valueclj

(get-raw-value lazy-map-entry)

Return the underlying delay object.

Return the underlying delay object.
raw docstring

ILazyPersistentMapcljprotocol

ILazyPersistentMap extends IPersistentMap with a method to allow transportation of the underlying delaying objects.

ILazyPersistentMap extends IPersistentMap with a method to allow
transportation of the underlying delaying objects.

delay-assocclj

(delay-assoc lazy-map key delay)

Associates the given delay/future in the map.

Associates the given delay/future in the map.
raw docstring

lazy-assoccljmacro

(lazy-assoc m & kvs)

lazy-assoc associates new values to the given keys in the given lazy map. The values are not evaluated, before their first retrieval. They are evaluated at most once.

lazy-assoc associates new values to the given keys in the given lazy map.
The values are not evaluated, before their first retrieval. They are
evaluated at most once.
raw docstring

lazy-assoc*cljdeprecated

(lazy-assoc* m & kvs)

lazy-assoc* is like lazy-assoc but a function and takes values as delays instead of expanding into a delay of val.

Deprecated: Use delayed-assoc instead.

lazy-assoc* is like lazy-assoc but a function and takes values as delays
instead of expanding into a delay of val.

Deprecated: Use delayed-assoc instead.
raw docstring

lazy-hash-mapcljmacro

(lazy-hash-map & kvs)

lazy-hash-map creates a map. The values are not evaluated before their first retrieval. Each value is evaluated at most once. The underlying map is a hash map.

lazy-hash-map creates a map. The values are not evaluated before their
first retrieval. Each value is evaluated at most once. The underlying map
is a hash map.
raw docstring

lazy-hash-map*cljdeprecated

(lazy-hash-map* & kvs)

lazy-hash-map* is the same as lazy-hash-map except that its a function and it takes a seq of keys-delayed-value pairs.

Deprecated: Use delayed-hash-map.

lazy-hash-map* is the same as lazy-hash-map except that its a function
and it takes a seq of keys-delayed-value pairs.

Deprecated: Use delayed-hash-map.
raw docstring

lazy-sorted-mapcljmacro

(lazy-sorted-map & kvs)

lazy-sorted-map creates a map. The values are not evaluated before their first retrieval. Each value is evaluated at most once. The underlying map is a sorted map.

lazy-sorted-map creates a map. The values are not evaluated before their
first retrieval. Each value is evaluated at most once. The underlying map
is a sorted map.
raw docstring

lazy-sorted-map*cljdeprecated

(lazy-sorted-map* & kvs)

lazy-sorted-map* is the same as lazy-sorted-map except that its a function and it takes a seq of keys-delayed-value pairs.

Deprecated: Use delayed-sorted-map

lazy-sorted-map* is the same as lazy-sorted-map except that its a
function and it takes a seq of keys-delayed-value pairs.

Deprecated: Use delayed-sorted-map
raw docstring

lazy-structcljmacro

(lazy-struct s & vs)

lazy-struct creates a map. The values are not evaluated before their first retrieval. Each value is evaluated at most once. The underlying map is a struct map according to the provided structure s. As with Clojure's struct the values have to appear in the order of the keys in the structure.

lazy-struct creates a map. The values are not evaluated before their
first retrieval. Each value is evaluated at most once. The underlying map
is a struct map according to the provided structure s. As with Clojure's
struct the values have to appear in the order of the keys in the structure.
raw docstring

lazy-struct*cljdeprecated

(lazy-struct* s & vs)

lazy-struct* is the same as lazy-struct except that its a function and it takes a seq of delayed value together with the struct basis.

Deprecated: Use delayed-struct

lazy-struct* is the same as lazy-struct except that its a function and
it takes a seq of delayed value together with the struct basis.

Deprecated: Use delayed-struct
raw docstring

lazy-struct-mapcljmacro

(lazy-struct-map s & kvs)

lazy-struct-map creates a map. The values are not evaluated before their first retrieval. Each value is evaluated at most once. The underlying map is a struct map according to the provided structure s.

lazy-struct-map creates a map. The values are not evaluated before their
first retrieval. Each value is evaluated at most once. The underlying map
is a struct map according to the provided structure s.
raw docstring

lazy-struct-map*cljdeprecated

(lazy-struct-map* s & kvs)

lazy-struct-map* is the same as lazy-struct-map except that its a function and it takes a seq of keys-delayed-value pairs together with the struct basis.

Deprecated: Use delayed-struct-map

lazy-struct-map* is the same as lazy-struct-map except that its a
function and it takes a seq of keys-delayed-value pairs together with the
struct basis.

Deprecated: Use delayed-struct-map
raw docstring

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

× close