Start from a main routine: Difference between revisions

Content added Content deleted
(Scala added)
m (→‎{{header|Scala}}: Rm Scala imp category)
Line 195: Line 195:


=={{header|Scala}}==
=={{header|Scala}}==
[[Category:Scala Implementations]]
{{libheader|Scala}}
{{libheader|Scala}}
===No kidding and trickery===
===No kidding and trickery===
Line 206: Line 205:
Console.println("Goodbye, World: " + (args mkString ", "))
Console.println("Goodbye, World: " + (args mkString ", "))
}</lang>
}</lang>

=={{header|sed}}==
=={{header|sed}}==
A <code>sed</code> program repeats itself for each line of input, but your program can begin with commands that address line 1. (This requires that your input has a line 1. If your input is empty file, like <code>/dev/null</code>, then it is impossible to run commands.)<lang sed># This code runs only for line 1.
A <code>sed</code> program repeats itself for each line of input, but your program can begin with commands that address line 1. (This requires that your input has a line 1. If your input is empty file, like <code>/dev/null</code>, then it is impossible to run commands.)<lang sed># This code runs only for line 1.