Tracking Issue for const_array (original) (raw)
Feature gate: #![feature(const_array)]
This is a tracking issue for const [T]::map and array::from_fn.
Public API
// core::array impl<T, const N: usize> [T; N] { pub const fn map<F, U>(self, f: F) -> [U; N] where F: [const] FnMut(T) -> U + [const] Destruct, U: [const] Destruct; }
pub const fn from_fn<T: [const] Destruct, const N: usize, F>(f: F) -> [T; N] where F: [const] FnMut(usize) -> T + [const] Destruct;
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- Implementation: constify from_fn, try_from_fn, try_map, map #147071
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Should
array::try_mapbe constified