New Issue: [Feature Request]: Add predicate based searches for array.find

28767, "jabraham17", "[Feature Request]: Add predicate based searches for array.find", "2026-05-04T16:09:48Z"

Summary of Feature

Description:
Similar to [Feature Request]: Allow passing a function to list.find/list.contains instead of element · Issue #28191 · chapel-lang/chapel · GitHub, we should support array.find(predicate) to allow searching for elements by something other than ==.

Is this issue currently blocking your progress?
no

Code Sample

var arr = ["1", "2", "3"];
var idx = arr.find(proc(x: string) { return x:int == 1; });