4 ms·
> This is impossible without varargs, no? Nah, you'd just implement it as an impl over and over on tuples of reasonable size (up to 16 or so). It wouldn't be
by pcwalton 10y ago
> This is impossible without varargs, no?
Nah, you'd just implement it as an impl over and over on tuples of reasonable size (up to 16 or so).
It wouldn't be elegant, but it'd work in practice.
- steveklabnik 10y agoOh right, I see now.
- __s 10y agoThis technique is used a lot by specs: https://github.com/slide-rs/specs/blob/master/src/join.rs#L50 https://github.com/slide-rs/specs/blob/master/src/join.rs#L5...
- cbreeden 10y agoWhich is what itertools does I believe https://bluss.github.io/rust-itertools/doc/itertools/struct.Zip.html https://bluss.github.io/rust-itertools/doc/itertools/struct....