cairo_lang_utils/
iterators.rs

1use itertools::zip_eq;
2
3/// Similar to [zip_eq], except that it works with 3 iterators.
4pub fn zip_eq3<A, B, C>(a: A, b: B, c: C) -> impl Iterator<Item = (A::Item, B::Item, C::Item)>
5where
6    A: IntoIterator,
7    B: IntoIterator,
8    C: IntoIterator,
9{
10    zip_eq(a, zip_eq(b, c)).map(|(a, (b, c))| (a, b, c))
11}