RosettaCodeData/Task/Loops-Foreach/C-Shell/loops-foreach.csh

5 lines
101 B
Tcsh

set collection=(first second third fourth "something else")
foreach x ($collection:q)
echo $x:q
end