Ruby-style "each" in D?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 19 10:39:18 PDT 2014


On 3/19/14, 9:46 AM, Dicebot wrote:
> On Wednesday, 19 March 2014 at 16:40:24 UTC, Andrei Alexandrescu wrote:
>> On 3/19/14, 9:09 AM, Dicebot wrote:
>>> On Wednesday, 19 March 2014 at 16:04:16 UTC, Andrei Alexandrescu wrote:
>>>> tee is already being discussed -- Andrei
>>>
>>> On this topic, do we have something like "consume" in Phobos to eagerly
>>> iterate through the supplied range?
>>
>> A default "each" would do that.
>>
>> Andrei
>
> No, I don't mean iterate with predicate. I mean /dev/null thing.

So did I - "each" could take a default alias. -- Andrei


More information about the Digitalmars-d mailing list