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

slice

container.abstract_array.slice

(I 
type
:
integer, from I, to I)
 => 
Sequence T
[Redefinition of  Sequence.slice]
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

redefines:

Type Parameters

0.095dev (GIT hash 09dff08de289bbb6f7136c7e2f8c66dcc1856bba)
last changed: 2026-04-16