Using filter with std.container.Array.

Soulsbane via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 22 20:15:31 PDT 2017


On Thursday, 23 March 2017 at 03:02:54 UTC, Jonathan M Davis 
wrote:
> On Thursday, March 23, 2017 02:53:40 Soulsbane via 
> Digitalmars-d-learn wrote:
>> [...]
>
> find just iterates to the first element that matches. It 
> doesn't affect the range beyond that. It works basically the 
> same way that find would work with iterators in that it 
> iterates until it finds the element you're looking for. 
> However, since ranges then refer to more than one element at a 
> time, the rest of the range beyond that element is still there.
>
> [...]

Thanks a lot for the explanation. It's much clearer to me now! 
You've been a big help.


More information about the Digitalmars-d-learn mailing list