[Issue 12842] More support for ranges of ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 3 16:41:38 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=12842
Neia Neutuladh <dhasenan at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dhasenan at gmail.com
--- Comment #2 from Neia Neutuladh <dhasenan at gmail.com> ---
This bit me today with cartesianProduct. I'd naively expect to be able to do
something like:
iota(3).map!(x => iota(1, 7)).cartesianProduct
to get all possible results for rolling three six-sided dice. Unfortunately, I
had to write my own implementation of cartesianProduct to make it work.
--
More information about the Digitalmars-d-bugs
mailing list