Open
Description
Feature gate: #![feature(array_repeat)]
This is a tracking issue for array::repeat
, a function for creating array filled with a single Clone
able value.
Public API
// core::array
pub fn repeat<T: Clone, const N: usize>(v: T) -> [T; N];
Steps / History
- ACP: Add
array::repeat
for making an array from a non-Copy
non-const
value libs-team#310 - Implementation: Implement
array::repeat
#119127 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.