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

Reply via email to