Tracking Issue for Vec::from_fn (original) (raw)

Feature gate: #![feature(vec_from_fn)]

This is a tracking issue for the Vec::from_fn method.

Public API

impl Vec { pub fn from_fn(length: usize, f: F) -> Self where F: FnMut(usize) -> T, { (0..length).map(f).collect() } }

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html