splaytree-0.1.3: Provides an annotated splay tree

Safe HaskellNone

Data.SplayTree.Seq

Synopsis

Documentation

data Seq a Source

Instances

Functor Seq 
Foldable Seq 
Traversable Seq 
Eq a => Eq (Seq a) 
Ord a => Ord (Seq a) 
Show a => Show (Seq a) 
Monoid (Seq a) 

cons :: a -> Seq a -> Seq aSource

toList :: Seq a -> [a]Source

fromList :: [a] -> Seq aSource

lookupAt :: Seq a -> Int -> (Maybe a, Seq a)Source

Look up a value at the given index. Returns that value if it exists, and the appropriately splayed Seq.

init :: Seq a -> Seq aSource