|Available||ocaml-version >= "4.00.1"|
|Published||Nov 8, 2013|
|Statistics||Installed 26 times in last month.|
A purely functional list-like data structure supporting O(1) concatenation
Dlist (Difference List) is a purely functional list-like data structure supporting O(1) concatenation. This is particularly useful for efficient list construction from many lists. Dlist is a lazy immutable data type with no side effect.
This data structure is very handy when your algorithm requires lots of concatenations from many lists.
The idea is inspired by Haskell Data.Dlist and the APIs are influenced by Core.List.