Streams
5 pages
Combine
Stream combination: concat, interleave, zip, zipWith.
concat
Concatenate two streams: all elements of the first, then...
Core
Stream primitives: done/more/fromList/iterate/range/replicate.
done
Terminate a stream with a final value.
done : a...
Limit
Stream limiting: take, takeWhile, drop.
drop
Skip the first n elements of a stream.
drop : int -> Computation...
Reduce
Stream reduction: fold, toList, length, sum, any, all.
all
Check if all elements satisfy a predicate.
all : (a ->...
Transform
Stream transformations: map, filter, scanl.
filter
Keep only elements satisfying a predicate.
sfilter : (a ->...