Returning an empty range of a given type
rcorre via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 14 04:46:03 PDT 2015
On Thursday, 14 May 2015 at 06:41:45 UTC, Ali Çehreli wrote:
>
> I am lucky because although the returned type is opaque to me,
> I know that it is constructed by a void lambda.
Yeah, in this case I control the container so I may just add an
emptySlice property, but it does seem like it might be a common
need (to return an empty range of a given type without having
that range constructed beforehand).
More information about the Digitalmars-d-learn
mailing list