toolshed-0.15.0.0: Utilities used by other packages.
ToolShed.Data.List.Runlength
Contents
Description
AUTHOR
DESCRIPTION
Synopsis
type Code a = (Int, a)Source
Describes the number of consecutive equal items in a list.
encode :: Eq a => [a] -> [Code a]Source
Run-length encodes the specified list.
decode :: [Code a] -> [a]Source
Performs run-length decoding to retrieve the original unencoded list.
getLength :: Code a -> IntSource
Accessor.
getDatum :: Code a -> aSource