This module implements an iterator for list slices.
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- instSliceSizeListSliceData = { size := fun (s : Std.Slice (Std.Slice.Internal.ListSliceData α)) => (Std.Slice.Internal.iter s).count }
Allocates a new list that contains the contents of the slice.
Equations
Instances For
Equations
- List.instAppendListSlice = { append := fun (x y : ListSlice α) => have a := Std.Slice.toList x ++ Std.Slice.toList y; a.toSlice 0 a.length }
ListSlice representation.
Equations
- List.ListSlice.repr s = repr (Std.Slice.toList s) ++ Std.Format.text ".toSlice 0 " ++ Std.Format.text (toString (Std.Slice.toList s).length)
Instances For
Equations
- List.instReprListSlice = { reprPrec := fun (s : ListSlice α) (x : Nat) => List.ListSlice.repr s }
Equations
- List.instToStringListSlice = { toString := fun (s : ListSlice α) => toString (Std.Slice.toArray s) }
Allocates a new list that contains the contents of the slice.
Equations
- s.toList = List.ofSlice s