Loops/Foreach: Difference between revisions

Content added Content deleted
(Add Jsish)
Line 837: Line 837:


=={{header|Elena}}==
=={{header|Elena}}==
ELENA 3.4 :
ELENA 4.x :
<lang elena>import system'routines.
<lang elena>import system'routines;
import extensions.
import extensions;
public program
public program()
{
[
var things := ("Apple", "Banana", "Coconut").
var things := new string[]{"Apple", "Banana", "Coconut"};
things forEach(:thing)
things.forEach:(thing)
[
{
console printLine:thing
console.printLine:thing
]
}
]</lang>
}</lang>


=={{header|Elixir}}==
=={{header|Elixir}}==