3 ms·
Very intressting. Could the be used in clojure (I mean do the provid the same imutabillity concells do) What are the benefits of these over clojure vectors?
by nickik 16y ago
Very intressting. Could the be used in clojure (I mean do the provid the same imutabillity concells do)
What are the benefits of these over clojure vectors?
- daniel-cussen 16y agoYou know, I tried clojure out, but the cons cells are implemented in a weird way; they can't combine two objects, only an object and a sequence. So I could probably do something like trellises, but they wouldn't be as elegant.
- cgrand-net 16y agoI think one can use [a b] and destructuring instead of cons/car/cdr and be as elegant.
- tensor 16y agoAs I understand it, the finger trees library for clojure would give you more flexibility and better performance. https://github.com/clojure/data.finger-tree https://github.com/clojure/data.finger-tree