[Haskell-beginners] Circular Linked Lists
Erik de Castro Lopo
mle+cl at mega-nerd.com
Mon Feb 2 21:53:17 EST 2009
Matthew J. Williams wrote:
> How would one mimic, in Haskell, a C++ circular linked list i.e.,
> where the last element precedes (points to) the first?
Try this, "Tying the Knot":
http://www.haskell.org/haskellwiki/Tying_the_Knot
Erik
--
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"I consider C++ the most significant technical hazard to the survival
of your project and do so without apologies." -- Alistair Cockburn
More information about the Beginners
mailing list