Caffeine v0.1.0 Caffeine.Stream

Coffee Bean Boundary

A stream library with an emphasis on simplicity

Link to this section Summary

Types

t()

The stream data-structure

Functions

A simple map

Extracts n consecutive elements from the stream

Link to this section Types

Link to this type t()
t() :: nonempty_improper_list(term(), function()) | []

The stream data-structure

Link to this section Functions

Link to this function map(s, f)
map(t(), (term() -> term())) :: t()

A simple map

The output stream is the input stream w/ the function f applied to the elements.

Link to this function take(x, n)
take(t(), integer()) :: list()

Extracts n consecutive elements from the stream

A list of less than n elements out if it reaches the sentinel.