[Issue 21615] New: indexOf for arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 6 15:46:29 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21615

          Issue ID: 21615
           Summary: indexOf for arrays
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: rumbu at rumbu.ro

Please add a classic indexOf function in std.algorithm.searching.

Usage of countUntil is not obvious.

For reference: 

C++ find
C# IndexOf
Java indexOf
Python index
Rust position

--


More information about the Digitalmars-d-bugs mailing list