vector-for-each

Name

vector-for-each -- Applies a function to elements of a vector

Type: function

Synopsis

vector-for-each( proc vector, object ...);

Arguments

proc

An instance of <function>.

vector

Instances of <vector>.

Return Values

object

Instances of <object>.

Description

This function is to vectors what for-each is to lists.

In particular, the procedure proc is called with corresponding vector elements, in order (up to the length of the shortest vector.) Also, vector-for-each returns whatever the last call to proc returns[1].

Notes

[1]

This return value is deprecated