Closed
Description
The feature gate for the issue is #![feature(array_map)]
.
Public API
impl<T, const N: usize> [T; N] {
pub fn map<F, U>(self, f: F) -> [U; N] where F: FnMut(T) -> U;
}
Steps / History
- Implement it: Add
array
lang item and[T; N]::map(f: FnMut(T) -> S)
#75212 - Add in place optimization for same size & alignment (?)
- FCP
- Stabilization PR Stabilize
[T; N]::map()
#87174
Unresolved Questions
How should order be documented/allowed for map? See #75212 (comment) for discussion.
Metadata
Metadata
Assignees
Labels
Area: const generics (parameters and arguments)Area: `[T]`Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.