[Issue 12007] cartesianProduct does'nt work with ranges of immutables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 26 22:42:59 PST 2014


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


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #10 from monarchdodra at gmail.com 2014-02-26 22:42:49 PST ---
(In reply to comment #9)
> (In reply to comment #8)
> 
> > It should be working fine now (your code works fine for me). You can try it
> > again now.
> 
> Unfortunately I am still seeing problems:
> 
> void main() {
>     import std.algorithm: cartesianProduct;
>     auto s = "123456789"d;
>     foreach (p; cartesianProduct(s, s, s)) {}
> }

Indeed. I'll investigate.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list