double-linked list

Francesco Cesarini francesco@REDACTED
Thu Jul 4 11:56:43 CEST 2002


Hi Vlad,

Vlad Dumitrescu wrote:

> I want to implement a double-linked list, which I can easily traverse 
> in both directions. I wonder if there are any smart solutions you know 
> of... 

Why don't you use ets tables with an ordered set, and the calls prev/2 
and next/2? Sounds like the easiest solution to me.

Francesco






More information about the erlang-questions mailing list