Hi André,

Am 31.10.2008 um 22:48 schrieb André Thieme:
Can anybody give a very simple/minimal implementation of lists/ vectors/
maps in Clojure?
A 5-20 lines (proxy ...) example that would allow me to say
(def a (make-lyst 1 2 3)) and run several list functions on it?

There is my lazy-map package. It doesn't use proxy, because I needed
an additional method, which the proxy doesn't allow. However it is
not very big and the methods are reasonable short to be easily
understood.

It turns any map given into a lazy map, which does not evaluate the
value associated with a key until it is accessed. So this is maybe a
good example of a modified data structure.

The package may be found at:
  http://kotka.de/projects/clojure/lazy-map.html

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to