Variadic function: Difference between revisions

Content added Content deleted
(Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag)
Line 1,036: Line 1,036:
{
{
@Inject Console console;
@Inject Console console;
strings.forEach(s -> console.println(s));
strings.forEach(s -> console.print(s));
}
}


Line 1,052: Line 1,052:
</syntaxhighlight>
</syntaxhighlight>


{{out}}
Output:
<pre>
<syntaxhighlight>
hello
hello
world
world
Line 1,060: Line 1,060:
constant
constant
literal
literal
</pre>
</syntaxhighlight>


=={{header|Egel}}==
=={{header|Egel}}==