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.

Since: PCC2 1.99.9

See also: FindShip, FindPlanet, Elementary Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.