This module implements an iterator for array slices (Subarray).
@[implicit_reducible, inline]
def SubarrayIterator.step {α : Type u} {m : Type u → Type u_1} :
Std.IterM Id α → Std.IterStep (Std.IterM m α) α
Instances For
@[instance_reducible]
@[instance_reducible]
instance instIteratorLoopSubarrayIteratorIdOfMonad {α : Type u} {m : Type u_1 → Type u_2} [Monad m] :
@[instance_reducible, inline]
Without defining the following function Subarray.foldlM, it is still possible to call
subarray.foldlM, which would be elaborated to Slice.foldlM (s := subarray). However, in order to
maximize backward compatibility and avoid confusion in the manual entry for Subarray, we
explicitly provide the wrapper function Subarray.foldlM for Slice.foldlM, providing a more
specific docstring.
Allocates a new array that contains the contents of the subarray.
Instances For
@[simp]
Allocates a new array that contains the contents of the subarray.
Instances For
Subarray representation.