You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repeat_with and try_repeat_with are very similar to from_fn and try_from_fn (Tracking issue for try_array_from_fn #89379), just that they take nullary instead of unary functions. Anyone considering stabilizing these should think about those, and vice versa.
Feature gate:
#![feature(array_repeat)]This is a tracking issue for creating a fixed-size array by repeatedly
Cloningan item, or by repeatedly calling a possibly-fallible nullaryFnMut.Public API
Steps / History
resize(_with)and(try_)repeat(_with)for arrays #91506Unresolved Questions
repeat_withandtry_repeat_withare very similar tofrom_fnandtry_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.