Returning an empty range of a given type
rcorre via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 14 20:47:44 PDT 2015
On Friday, 15 May 2015 at 03:22:43 UTC, rcorre wrote:
> On Thursday, 14 May 2015 at 14:57:26 UTC, Idan Arye wrote:
>
>> How about a more flexible solution?
>>
>> http://dpaste.dzfl.pl/2f99cc270651
>
> Neat, thanks!
>
The range I don't pick may be an expression that would fail, so I
tweaked it to:
SelectRange!T selectRange(T...)(size_t index, lazy T ranges)
Other than that, it seems to be just what I needed. Thanks again!
More information about the Digitalmars-d-learn
mailing list