[Issue 4264] Various std.algorithm.map problems

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 16 07:49:39 PDT 2010


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #2 from yebblies <yebblies at gmail.com> 2010-07-16 07:49:34 PDT ---
The problem with the last example seems to be that the template arguments to
'to' are in the wrong order.

Also, how can the opApply example work with lazy iteration?
As far as I know opApply does not provide any way to pause and resume
iteration.

It would be possible on the other hand to allow array to work on anything that
supplies opApply.

eg.

// s defines opApply
map!func(array(s)) // no lazy iteration
// but not
array(map!func(s))

-- 
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