hw-streams-0.0.0.5: Primitive functions and data types
HaskellWorks.Data.Streams.Stream
data Stream a where Source #
Constructors
Defined in HaskellWorks.Data.Streams.Stream
Methods
fmap :: (a -> b) -> Stream a -> Stream b #
(<$) :: a -> Stream b -> Stream a #
data Step s a Source #
fmap :: (a -> b) -> Step s a -> Step s b #
(<$) :: a -> Step s b -> Step s a #
zipWith :: (a -> b -> c) -> Stream a -> Stream b -> Stream c Source #
zipWithState :: (a -> b -> s -> (c, s)) -> s -> Stream a -> Stream b -> Stream c Source #
enumFromStepN :: Num a => a -> a -> Int -> Stream a Source #
foldl :: (a -> b -> a) -> a -> Stream b -> a Source #
drop :: Int -> Stream a -> Stream a Source #
append :: Stream a -> Stream a -> Stream a Source #
singleton :: a -> Stream a Source #
repeat :: Int -> a -> Stream a Source #
transcribe :: (s -> a -> (b, s)) -> s -> Stream a -> Stream b Source #
concatMap :: (a -> Stream b) -> Stream a -> Stream b Source #
dupMap :: forall a b. (a -> b) -> (a -> b) -> Stream a -> Stream b Source #