Quark v2.1.0 Quark.Sequence protocol
A protocol for stepping through ordered enumerables
Summary
Types
t :: term
Functions
Specs
origin(any) :: any
The beginning of the sequence.
For instance, integers are generally thought of as centering around 0.
Examples
iex> origin(9)
0
Specs
pred(any) :: any
The pred
essor in the sequence.
For integers, this is the number below.
Examples
iex> pred(10)
9
iex> 42 |> origin |> pred |> pred
-2