interval
interval
Precondition
pre debug: ((step.sign = 0): through = from)
Type Parameters
Fields
Inclusive bound. Included only if reachable via `from + n * step`.
`nil` means unbounded.
`nil` means unbounded.
Functions
env_vars option (container.Map String String),feed_stdin option io.path,timeout option time.duration
env_vars option (container.Map String String),
feed_stdin option io.path,
timeout option time.duration
execute this Sequence of process+args
0.099dev (GIT hash bf4ead724d7f3fdab43a87b63c17477c916c8995)
This is a `Set T` and a `Sequence T` created by repeatedly adding `step` to `from`.
Stops before passing `through` (exceeding it for `step > 0`, falling below for `step < 0`).
Empty if `step` points away from `through`:
interval 1 2 -1 # empty: steps down, but through is up
interval 2 1 1 # empty: steps up, but through is down
A zero `step` is only allowed when `from = through`; such an interval
contains the single element `from`:
interval 5 5 0 # 5
If `through` is `nil`, the interval is unbounded and limited only by type `T` range.
This is not an interval in the mathematical sense, but rather a representation
of an arithmetic progression.