[Issue 4729] std.algorithm: strange iota behaviour

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 26 06:04:16 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4729


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc
            Summary|std.algorithm: atrange iota |std.algorithm: strange iota
                   |behaviour                   |behaviour


--- Comment #1 from bearophile_hugs at eml.cc 2010-08-26 06:04:08 PDT ---
It seems a iota() problem.


import std.algorithm: reduce, filter;
import std.range: iota;
void main() {
    reduce!"0"(filter!((int a){ return false; })(iota(1)));
}

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


More information about the Digitalmars-d-bugs mailing list