arrows-0.2: Arrow classes and transformersSource codeContentsIndex
Data.Stream
Portabilityportable
Stabilityexperimental
Maintainerross@soi.city.ac.uk
Description
Infinite sequences.
Synopsis
data Stream a = Cons {
shd :: a
stl :: Stream a
}
zipStream :: Stream a -> Stream b -> Stream (a, b)
unzipStream :: Stream (a, b) -> (Stream a, Stream b)
listToStream :: [a] -> Stream a
streamToList :: Stream a -> [a]
Documentation
data Stream a Source
An infinite sequence.
Constructors
Cons
shd :: ahead of the stream
stl :: Stream atail of the stream
show/hide Instances
zipStream :: Stream a -> Stream b -> Stream (a, b)Source
Lazy zip of a pair of streams.
unzipStream :: Stream (a, b) -> (Stream a, Stream b)Source
Lazy unzip of a pair of streams.
listToStream :: [a] -> Stream aSource
An infinite sequence obtained by padding the list with undefined.
streamToList :: Stream a -> [a]Source
The infinite list corresponding to a stream.
Produced by Haddock version 2.3.0