Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
SkipList
s are comprised of a list and an index on top of it
which makes deep indexing into the list more efficient (O(log n)).
They achieve this by essentially memoizing the tail
function to
create a balanced tree.
NOTE: SkipList
s are amortized efficient, see the benchmarks for
performance results.
Documentation
SkipList
s are lists that support amortized efficient indexing.
Convert a list to a SkipList
.