mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
d8a38b0002
Implement `array::repeat` See rust-lang/libs-team#310. I've decided to make the function use the input value as last element instead of cloning it to every position and dropping it, and to make this part of the API so that callers are not surprised by this behaviour. TODO: open a tracking issue. I'll wait for the ACP to be accepted, first. `@rustbot` label +T-libs-api +T-libs r? libs