title: How can I initialize an array using a function?
body: <p>I want to create an array of 10 empty vectors in Rust, but <code>[Vec::new(); 10]</code> doesn't work as <code>Vec</code> doesn't implement <code>Copy</code>. How can I do this, and in more general terms how can I initialize a array by repeatedly calling a function?</p>