Equivalent of FirstOrDefault with ranges
Cauterite via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 2 01:41:14 PDT 2016
On Friday, 2 September 2016 at 06:56:07 UTC, Lutger wrote:
>
You could do:
names.find("bob").chain(only(``)).front;
It's not very expressive though.
More information about the Digitalmars-d-learn
mailing list