Finding position of a value in an array

Steven Schveighoffer schveiguy at gmail.com
Tue Dec 31 14:52:55 UTC 2019


On 12/31/19 9:47 AM, Steven Schveighoffer wrote:

> for the original example:
> 
>      int[] a = [77,66,55,44];
>      int i = a.bwin.find(55).bufRef.pos;

sorry, should be size_t i.

-Steve


More information about the Digitalmars-d-learn mailing list