Optional parameters: Difference between revisions
Content added Content deleted
(Add Ecstasy example) |
(Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag) |
||
Line 918: | Line 918: | ||
{ |
{ |
||
@Inject Console console; |
@Inject Console console; |
||
console. |
console.print($"{title}:"); |
||
for (val row : table) |
for (val row : table) |
||
{ |
{ |
||
console. |
console.print($" {row}"); |
||
} |
} |
||
console. |
console.print(); |
||
} |
} |
||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
|||
Output: |
|||
<pre> |
|||
<syntaxhighlight> |
|||
original input: |
original input: |
||
[c, x, i] |
[c, x, i] |
||
Line 949: | Line 949: | ||
[c, x, i] |
[c, x, i] |
||
[b, z, a] |
[b, z, a] |
||
</pre> |
|||
</syntaxhighlight> |
|||
=={{header|Elixir}}== |
=={{header|Elixir}}== |