Start from a main routine: Difference between revisions
Content deleted Content added
Scala added |
m →{{header|Scala}}: Rm Scala imp category |
||
Line 195:
=={{header|Scala}}==
{{libheader|Scala}}
===No kidding and trickery===
Line 206 ⟶ 205:
Console.println("Goodbye, World: " + (args mkString ", "))
}</lang>
=={{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.
|