Simpler checks for specialized fold
Simpler checks for specialized fold

Instead of XORing everything, remember all the intermediate parameters
and simply push elements into a Vec, relaxing the type constraints.

rust-itertools/itertools