Caffeine v0.2.0 Caffeine.Stream
Find the API under this module
Link to this section Summary
Functions
A stream whose head is the element e and whose tail s is the expression to generate successive elements
The first element, if any, of the stream
A simple map
A special value whose presence signals the end of a stream
A predicate to test for the sentinel value
The stream, if any, succeeding the first element
Extracts n consecutive elements from the stream
Link to this section Types
The Caffeine.Stream data structure
Link to this section Functions
A stream whose head is the element e and whose tail s is the expression to generate successive elements
Warning: don’t evaluate the expression s before passing it to construct/2 otherwise it’s no longer lazy.
The first element, if any, of the stream
A simple map
The output stream is the input stream w/ the function f applied to each of the elements.
A special value whose presence signals the end of a stream
A predicate to test for the sentinel value
The stream, if any, succeeding the first element
Extracts n consecutive elements from the stream
A list of less than n elements out if it reaches the sentinel.