toolshed-0.17.0.2: Ill-defined library.
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 -> Int Source #
Accessor.
getDatum :: Code a -> a Source #