fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

nth

interval.nth

nth(n i64) => option T[Redefinition of  Sequence.nth][src]
the n-th element of this interval, `nil` if out of range

For `step = 0` only index 0 exists: every index would otherwise
yield `from`.

Complexity: O(1), which relies on the O(1) `contains` redefined in
this feature.
Precondition
Inherited from Sequence.nth
pre
  debug: n ≥ 0

redefines:

Arguments

n i64[src]
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23