In particular an immutable List with a cons operation would be welcome.
A:
There are multiple solutions posted in Cons’ing a List in Java. And immutability can be added with:
List l;
...
l = Collections.unmodifiableList(l);
Devon_C_Miller
2010-04-30 20:46:43
A:
Dug around a little bit longer. This library probably comes closest: http://functionaljava.googlecode.com/svn/artifacts/2.22/javadoc/index.html . I would imagine that it would be possible to use Clojure's collection classes directly, but I'm not sure if would feel all that natural. (And I don't necessarily need to 'transactional' behaviour.)
Wilfred Springer
2010-05-13 14:20:15
A:
I've written a bunch of persistent data structures in Java. My "PersistentList" is pretty close to what you want.
mikera
2010-05-13 15:08:04