chickadee » srfi-179 » array-any

array-any pred array1 array2 ...procedure

Assumes that array1, array2, etc., are arrays, all with the same domain, which we'll call interval. Also assumes that pred is a procedure that takes as many arguments as there are arrays and returns a single value.

array-any first applies (array-getter array1), etc., to the first element of interval in lexicographical order, to which values it then applies pred.

If the result of pred is not #f, then that result is returned by array-any. If the result of pred is #f, then array-any continues with the second element of interval, etc., returning the first nonfalse value of pred.

If pred always returns #f, then array-any returns #f.

If it happens that pred is applied to the results of applying (array-getter array1), etc., to the last element of interval, then this last call to pred is in tail position.

The functions (array-getter array1), etc., are applied only to those values of interval necessary to determine the result of array-any.

It is an error if the arguments do not satisfy these assumptions.