listwalk/2—runs instructions against each element in a list
listwalk/2 operation runs instructions against each element in a list. The syntax for this function is as follows:
Specifies the list for which each element is to be executed against
Elements from the list against which instructions are to be executed
listwalk/2 operation to go through each element in list
$LIST, returning each element in
$ELEM. All instructions following the call of
listwalk/2 are executed for each element.
$E.msg = 'Bad slot names:'; listwalk($E.mc_bad_slot_names,$SLTNM); concat([$E.msg,' ',$SLTNM],$E.msg);
msg slot is filled with the sequence of bad slot names.