Slices an input sync iterable between the specified start and end indices.
If both start and end indices are non-negative, the slicing is performed lazily.
Otherwise, the slicing is performed greedily.
Returns
A function that accepts an input sync iterable and returns an iterable that yields the sliced values.
Slices an input sync iterable between the specified start and end indices. If both start and end indices are non-negative, the slicing is performed lazily. Otherwise, the slicing is performed greedily.
Returns
A function that accepts an input sync iterable and returns an iterable that yields the sliced values.
Example
Remarks
Available as
slice
when imported frompeter-piper/sync
.