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

slice

container.abstract_array.slice

slice(I:integer,from I,to I) => Sequence T[Redefinition of  Sequence.slice][src]
create a slice from this array's elements at index 'from' (included)
up to 'to' (excluded).

Complexity:
index access : O(1)
count : O(1)
Precondition
Inherited from Sequence.slice
pre
  debug : from ≥ 0
  debug : to = 0 || (if is_array_backed || debug_level > 1 then is_valid_index to-1 else true)
  debug : from <= to
Postcondition
Inherited from Sequence.slice
post
  debug: result.finite.is_yes_or_unknown
  debug: result.count = (to-from).as_i64

redefines:

Type Parameters

I:integer[src]

Arguments

from I[src]
to I[src]
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23