Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains some debug utilities. It should only be used for debugging/testing purposes.
Synopsis
- showTree :: Show a => Vector a -> String
- fromListUnbalanced :: [a] -> Vector a
- pattern Empty :: Vector a
- pattern Root :: Int -> Shift -> Tree a -> Vector a
- data Tree a
- type Shift = Int
- pattern Balanced :: Array (Tree a) -> Tree a
- pattern Unbalanced :: Array (Tree a) -> PrimArray Int -> Tree a
- pattern Leaf :: Array a -> Tree a
Documentation
fromListUnbalanced :: [a] -> Vector a Source #
\(O(n)\). Create a new unbalanced vector from a list.
Note that it is not possbible to create an invalid Vector
with this function.