Loops/Foreach: Difference between revisions
Add ed example
(PascalABC.NET) |
(Add ed example) |
||
(One intermediate revision by one other user not shown) | |||
Line 1,238:
5
</pre>
=={{header|Ed}}==
Print all (newline-separated) lines in the file.
,p
</syntaxhighlight>
=={{header|Efene}}==
Line 1,843 ⟶ 1,851:
=={{header|langur}}==
A for in loop iterates over values and a for of loop iterates over keys.
<syntaxhighlight lang="langur">
for i in [1, 2, 3] {
writeln
}
val
for
writeln
}
for
writeln
}
for
writeln cp2s
}
▲}</syntaxhighlight>
</syntaxhighlight>
{{out}}
|