Open
Description
Motivation
It's a pain in the patella to iterate over a buffer pointer containing non-copyable values. Seems like indices
and/or a borrowing forEach(_:)
ought to be possible to implement even for non-copyable values.
Proposed solution
Implement indices
and forEach(_:)
when Self
doesn't conform to Sequence
or Collection
.
Alternatives considered
There's probably a dozen other ways to accomplish iteration here that would be concise and "Swifty".
Additional information
No response