2 releases

0.1.1 Aug 24, 2020
0.1.0 Aug 24, 2020

#14 in #iterating

MIT/Apache

4KB
52 lines

Tupiter

This crate is a hacky solution for anyone who wants to iterate over a homogeneous tuple that they can't rewrite to being an array.

use ::tupiter::IntoIterator;
for x in (1,2,3,4).into_iter() {
    println!("{}", x);
}

lib.rs:

Why the hell not iterate over homogeneously typed tuples? Sure arrays are already gonna get better support for this, but heck, there are libraries that give me tuples and I wanna map 'em!

Dependencies