Transform
Stream transformations: map, filter, scanl.
filter
Keep only elements satisfying a predicate.
sfilter : (a -> bool) -> Computation (Step r a) -> Computation (Step r a)
map
Map a function over each element of a stream.
smap : (a -> b) -> Computation (Step r a) -> Computation (Step r b)
scanl
Accumulate a running fold over the stream, yielding each intermediate value.
scanl : (b -> a -> b) -> b -> Computation (Step r a) -> Computation (Step r b)