Finding position of a value in an array
Imperatorn
johan_forsberg_86 at hotmail.com
Sat Feb 6 16:48:00 UTC 2021
On Saturday, 6 February 2021 at 15:47:05 UTC, Rumbu wrote:
> On Sunday, 29 December 2019 at 08:26:58 UTC, Daren Scot Wilson
> wrote:
>> [...]
>
> Just reactivating this post to tell you that I lost 15 minutes
> of my life searching for a basic way to obtain the position of
> an element in an array; Out of frustration, I ended to write my
> own indexOf function. Any library on Earth has such function
> and it's not named countUntil, nor
> giveMeTheDamnPositionOfXInThatArray.
>
> It seems that D is specialised in finding needles in haystacks,
> not finding elements in arrays.
>
> https://issues.dlang.org/show_bug.cgi?id=21615
+1
More information about the Digitalmars-d-learn
mailing list