D-Programming-Language/phobos — pull request #1897 by monarchdodra (2014-02-01 17:39:16+00:00)
Title: Fix issue 12007 - cartesianProduct does'nt work with ranges of immutable...

...s

https://d.puremagic.com/issues/show_bug.cgi?id=12007

This makes a tweak to `Zip`'s `save`: Now, it *builds* a new `Zip` object
from the saved ranges, rather than assigning each range individually.

This gives 2 advantages:
1. Better support for `save` (which doesn't actaully guarantee assignability)
2. Avoids useless `opAssign` overhead