The docs seem to indicate that after zipping two iterators together, you can turn them into an array with .from_iterator()
, but when I try to do this, rust reports:
std::iter::Zip<std::vec::VecIterator<,int>,std::vec::VecIterator<,int>>` does not implement any method in scope named `from_iterator`
Could someone please give working sample code for rust 0.8 that turns a Zip into an array?