Tracking Issue for core::array::(try_)repeat(_with)
(feature array_repeat
)
#91613
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(array_repeat)]
This is a tracking issue for creating a fixed-size array by repeatedly
Cloning
an item, or by repeatedly calling a possibly-fallible nullaryFnMut
.Public API
Steps / History
resize(_with)
and(try_)repeat(_with)
for arrays #91506Unresolved Questions
repeat_with
andtry_repeat_with
are very similar tofrom_fn
andtry_from_fn
(Tracking issue fortry_array_from_fn
#89379), just that they take nullary instead of unary functions. Anyone considering stabilizing these should think about those, and vice versa.The text was updated successfully, but these errors were encountered: