fn collect_tuples<T, U, I>(iter: I) -> (Vec<T>, Vec<U>)
where
	I: Iterator<Item = (T, U)>,
{
	iter.fold((vec![], vec![]), |mut acc, (a, b)| {
		acc.0.push(a);
		acc.1.push(b);
		acc
	})
}
/// Collect an iterator of 2-tuples into a tuple of vectors
Collect an iterator of 2-tuples into a tuple of vectors
Collect an iterator of 2 - tuples into a tuple of vectors
fn collect_tuples<T, U, I>(iter: I) -> (Vec<T>, Vec<U>)
where
	I: Iterator<Item = (T, U)>,
{
	iter.fold((vec![], vec![]), |mut acc, (a, b)| {
		acc.0.push(a);
		acc.1.push(b);
		acc
	})
}
fn collect_tuples < T , U , I > ( iter : I ) -> ( Vec < T > , Vec < U > ) where I : Iterator < Item = ( T , U ) > , { iter . fold ( ( vec ! [ ] , vec ! [ ] ) , | mut acc , ( a , b ) | { acc . 0 . push ( a ) ; acc . 1 . push ( b ) ; acc } ) }
Collect an iterator of 2-tuples into a tuple of vectors
Collect an iterator of 2 - tuples into a tuple of vectors
iter
I
iter
I