Contents

extracting(_:)

Constructs a new span over all the items of this span.

Declaration

mutating func extracting(_: UnboundedRange) -> MutableSpan<Element>

Return Value

A MutableSpan over all the items of this span.

Discussion

The returned span represents a mutation of this span.

The returned span’s first item is always at offset 0; unlike buffer slices, extracted spans do not share their indices with the span from which they are extracted.