eigenhombre / PyClojure

(Parts of) Clojure implemented on top of Python
Other
113 stars 13 forks source link

Make List inherit from ImmutableList #25

Closed zhemao closed 12 years ago

zhemao commented 12 years ago

Finally got around to making List immutable. It is basically a lisp-style list with heads and tails. The interface is pretty explanatory. List.first() gives you the head, List.rest() gives you the tail, and List.empty() tests whether the list is empty.