countUntil for SortedRange
Laeeth Isharc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 11 12:30:00 PDT 2015
Hi.
Basic question: suppose I have a SortedRange and want to find the
index of the first entry of an array of structs matching a needle
struct.
What's the best way to do that? It's not clear that countUntil
treats a SortedRange specially.
I could get the lowerBound and then length or walkLength (can't
remember which applies).
But I figure there must be a better way.
Thanks.
Laeeth.
More information about the Digitalmars-d-learn
mailing list