Consistency

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 15 10:18:26 PST 2015


On Sunday, 15 February 2015 at 18:15:13 UTC, Meta wrote:
>> print tup1.index(2)   # 2
> No way to do this in D

tup1.expand.only.countUntil(2).writeln;

Admittedly, it's a little longer than expected :)


More information about the Digitalmars-d mailing list