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

nth

interval.nth

n i64
)
 => 
option T
[Redefinition of  Sequence.nth]
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

0.099dev (GIT hash a35e75388cc5c7a861f5c2a3f42d121e3aab582a)
last changed: 2026-11-03