Add Lines::remainder
#171
Labels
ACP-accepted
API Change Proposal is accepted (seconded with no objections)
api-change-proposal
A proposal to add or alter unstable APIs in the standard libraries
T-libs-api
Proposal
Add
Lines::remainder
similarly to otherremainder
methods on split iterators for strings (see tracking issue: rust-lang/rust#77998).Problem statement
While most iterators that split strings allow to get the remainder,
Lines
does not.Motivation, use-cases
It may be beneficial to get the remainder of an iterator, for example to process it differently. A rough sketch:
Solution sketches
Links and related work
remainder
methods forstr
split iterators rust#77998str::Lines::remainder
rust#107464What happens now?
This issue is part of the libs-api team API change proposal process. Once this issue is filed the libs-api team will review open proposals in its weekly meeting. You should receive feedback within a week or two.
The text was updated successfully, but these errors were encountered: