Source

lazymap / README.txt

Full commit
          ______                     ______  ___
          ___  / ______ __________  ____   |/  /_____ ________
          __  /  _  __ `/__  /_  / / /_  /|_/ /_  __ `/__  __ \
          _  /___/ /_/ /__  /_  /_/ /_  /  / / / /_/ /__  /_/ /
          /_____/\__,_/ _____/\__, / /_/  /_/  \__,_/ _  .___/
                             /____/                   /_/

LazyMap is a transparent wrapper around the map types of Clojure. It works
similar to lazy-cons for lists: the value associated with a key via lazy-assoc
is not evaluated until it is actually accessed. So if the value is dissoc'd
before it is accessed the code necessary to generate the value is not executed
at all.

Normally it should not be necessary to rebuild the jar, but anyway...  To
build lazy-map create a file "local.properties" put a line in that file,
which specifies the location of your clojure.jar file.

clojure.jar=/path/to/your/clojure.jar

Then simply (re-)build by invoking ant.

Put the jar in your classpath and (require) the de.kotka.lazymap namespace.
Further documentation can be obtained via find-doc and doc in the Repl.

Meikel Brandmeyer <mb@kotka.de>,
Frankfurt am Main, 2009