Quark v2.3.0 Quark.Sequence protocol View Source
A protocol for stepping through ordered enumerables
Link to this section Summary
Link to this section Types
Link to this section Functions
The beginning of the sequence.
For instance, integers are generally thought of as centering around 0.
Examples
origin(9)
#=> 0
The pred
essor in the sequence.
For integers, this is the number below.
Examples
pred(10)
#=> 9
42 |> origin() |> pred() |> pred()
#=> -2