An infinite stream
Produce a Stream repeating a sequence
the sequence to repeat
proof that the list is non-empty
Return the diagonal elements of a stream of streams
Drop the first n elements from the stream
how many elements to drop
The first element of an infinite stream
Get the nth element of a stream
Generate an infinite stream by repeatedly applying a function
the function to iterate
the initial value that will be the head of the stream
An infinite stream of repetitions of the same thing
Produce a Stream of left folds of prefixes of the given Stream
the combining function
the initial value
the Stream to process
All but the first element
Take precisely n elements from the stream
how many elements to take
the stream
Create a pair of streams from a stream of pairs
Split a stream of three-element tuples into three streams
Create a stream of pairs from two streams
Combine three streams into a stream of tuples elementwise
Combine two streams element-wise using a function.
the function to combine elements with
the first stream of elements
the second stream of elements
Combine three streams by applying a function element-wise along them