Input/Output for lines of text: Difference between revisions
m
→{{header|Wren}}: Changed to Wren S/H
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 198:
Pack my Box with 5 dozen liquor jugs
</pre>
=={{header|Arturo}}==
<syntaxhighlight lang="arturo">printLine: function [line]-> print line
lineCount: to :integer strip input ""
do.times:lineCount [
line: input ""
printLine line
]</syntaxhighlight>
=={{header|AWK}}==
<syntaxhighlight lang="awk">
Line 685 ⟶ 696:
}
}</syntaxhighlight>
=={{header|jq}}==
The following works for both the C and the Go implementations of jq.
<pre>
jq -Rr 'limit(tonumber; inputs)'
</pre>
=={{header|Julia}}==
Line 1,088 ⟶ 1,105:
=={{header|Wren}}==
This assumes that both Stdin and Stdout are connected to a terminal.
<syntaxhighlight lang="
var output = Fn.new { |lines| System.print(lines.join("\n")) }
|