http://hackage.haskell.org/packages/archive/dlist/0.4.1/doc/...
It's basically a tree, which is efficient (amortized O(1) per element) for many list appends followed by one iteration.
http://hackage.haskell.org/packages/archive/dlist/0.4.1/doc/...
It's basically a tree, which is efficient (amortized O(1) per element) for many list appends followed by one iteration.