5.4.22.1. new (Class Method)
Returns a new supplier object. The
items argument must be an
array of objects over which the supplier iterates. The
indexes argument
is an array of index values with a one-to-one correspondence to the objects
contained in the
items array.
The created supplier iterates over the arrays,
returning elements of the values array in response to
items messages, and
elements of the indexes array in response to
index messages. The supplier
iterates for the number of items contained in the values array, returning
.nil for any nonexistent items in either array.