Next: ’for-as-hash’, Previous: ’for-as-equals-then’, Up: Iteration Control [Contents][Index]
This is the fifth of seven ‘for/as’ syntaxes.
for var [type-spec] across vector as var [type-spec] across vector
var
to the value of each element in the
array vector
.
vector
; ‘across’ is used as a
preposition in this syntax. Iteration stops when there are no more elements
in the specified array that can be referenced.
the
special form in
the vector
form to produce more efficient code.
(loop for char across (the simple-string (find-message port)) do (write-char char stream))