Find(a:Array, q:Expr, v:Expr):Any

Find element in an array. a must be an array of objects (such as a builtin object array like Ship or Planet). The expression q is evaluated for each object, as if within a ForEach loop. If it returns true, the function returns v evaluated in that object's context. If no object matches, the return value is EMPTY.

See also: FindShip, FindPlanet, Elementary Functions