-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for Iterator::array_chunks #100450
Copy link
Copy link
Open
Labels
A-arrayArea: `[T; N]`Area: `[T; N]`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-arrayArea: `[T; N]`Area: `[T; N]`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(iter_array_chunks)]This is a tracking issue for
Iterator::array_chunks, an iterator adapter that allows to group elements of an iterator.Public API
Steps / History
Iterator::array_chunks(take N+1) #100026iter::ArrayChunks::into_remainder#149127Unresolved Questions
DoubleEndedIteratorbe implemented?ExactSizeIterator.rev().array_chunks()and.array_chunks().rev()are differentDoubleEndedIteratorimplementation should be improvedIterator::next_chunk_backlike there is for forwardunwrap_err_uncheckedinnext_back_remaindersound, despite not usingTrustedLen? (I didn't block the original PR on this because it goes throughtake, which I think we can trust, but I'd like someone smarter than me to think about it and confirm.)N != 0? (See also this same question in[T]::as_chunks.)array::IntoIter<T, N>and the current one where the items are[T; N]and there's a remainder? ([T]::array_chunkshas this question too and is unstable.)Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩