Quark v1.0.1 Quark.Sequence protocol
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
iex> origin(9)
0
Specs
pred(any) :: any
The predessor in the sequence.
For integers, this is the number below.
iex> pred(10)
9
iex> 42 |> origin |> pred |> pred
-2