Nested function: Difference between revisions
Content added Content deleted
(Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag) |
|||
Line 541: | Line 541: | ||
{ |
{ |
||
@Inject Console console; |
@Inject Console console; |
||
console. |
console.print(makeList(". ")); |
||
} |
} |
||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
|||
Output: |
|||
<pre> |
|||
<syntaxhighlight> |
|||
1. first |
1. first |
||
2. second |
2. second |
||
3. third |
3. third |
||
</pre> |
|||
</syntaxhighlight> |
|||
=={{header|Elena}}== |
=={{header|Elena}}== |