Ruby-style "each" in D?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 19 09:04:17 PDT 2014


On 3/19/14, 9:03 AM, Dicebot wrote:
> On Wednesday, 19 March 2014 at 16:01:06 UTC, Andrei Alexandrescu wrote:
>> On 3/19/14, 8:55 AM, Dicebot wrote:
>>> I would have supported if it was lazy. Not in its proposed form.
>>
>> Good point. Maybe forall would be a better name.
>>
>> Andrei
>
> I think "each" is a good name but it should instead return range that
> calls predicate function upon "popFront" and proxies input argument
> further from "front". bearophile has been proposing it under name "tap",
> but I like "each" more.

tee is already being discussed -- Andrei


More information about the Digitalmars-d mailing list