[Chapel Merge] This PR:

Branch: refs/heads/main
Revision: 0d23cf8
Author: slnguyen
Link: Renaming list.indexOf to list.find by slnguyen · Pull Request #19059 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19059 from slnguyen/list_indexOf

This PR:

  • Renames list.indexOf to list.find to match with string.find and bytes.find (motivated by issue #18099)
  • Updates modules that use list.indexOf to use list.find
  • Adds new tests to indicate that list.indexOf is deprecated
  • Modifies existing tests that use list.indexOf to use list.find
  • Updates documentation to warn that list.indexOf is deprecated

Reviewed by @daviditen

Modified Files:
A test/deprecated/listIndexOf.chpl

A test/deprecated/listIndexOf.good
M modules/packages/ArgumentParser.chpl
M modules/standard/List.chpl
M test/library/standard/List/indexOf/listIndexOf.chpl
M test/library/standard/List/indexOf/listIndexOfEmptyList.chpl
M test/library/standard/List/indexOf/listIndexOfHaltEnd.chpl
M test/library/standard/List/indexOf/listIndexOfHaltEnd.good
M test/library/standard/List/indexOf/listIndexOfHaltStart.chpl
M test/library/standard/List/indexOf/listIndexOfHaltStart.good
M test/release/examples/primers/listOps.chpl

Compare: https://github.com/chapel-lang/chapel/compare/40e1d332d2c8...0d23cf873020