Input/Output for pairs of numbers: Difference between revisions

Content added Content deleted
(added RPL)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,092: Line 1,092:
=={{header|Wren}}==
=={{header|Wren}}==
This assumes that both Stdin and Stdout are connected to a terminal.
This assumes that both Stdin and Stdout are connected to a terminal.
<syntaxhighlight lang="ecmascript">import "io" for Stdin
<syntaxhighlight lang="wren">import "io" for Stdin


var output = Fn.new { |pairs| pairs.each { |p| System.print(p[0] + p[1]) } }
var output = Fn.new { |pairs| pairs.each { |p| System.print(p[0] + p[1]) } }