[plt-scheme] self-referential data structures

From: Stephen Bloch (sbloch at adelphi.edu)
Date: Fri Mar 6 13:26:37 EST 2009

BTW, I just wrote up a Java version of this approach, with methods
atRightEnd(), atLeftEnd(), getLeft, getRight, insertLeft,  
insertRight, moveLeft, moveRight, removeLeft, and removeRight.  It's  
all purely functional, and it all seems to work.  And, of course, it  
takes about five times as much code as it would take to do the same  
thing in Scheme :-)


Stephen Bloch
sbloch at adelphi.edu



Posted on the users mailing list.