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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close