Re:Lisphp is a Lisp dialect written in PHP.
by koenigdavidmj on Tuesday July 06, 2010 @01:08AM
(#1490028)
If I recall correctly, Clojure does something like this on most of its basic types. Since it wants users to avoid in-place modifications, it provides data structures that have modification functions that return new instances of the data structure with the changes made. These also do not regenerate the whole structure; they only use memory to point to the one modified/added element.
Please correct me if this is false.