Anonymous user
Copy stdin to stdout: Difference between revisions
→{{header|D}}: add crystal implementation
(add Standard ML) |
(→{{header|D}}: add crystal implementation) |
||
Line 107:
(loop for x = (read-char *query-io*) until (or (char= x #\Sub) (char= x #\Eot)) collecting x)))
</lang>
=={{header|Crystal}}==
<lang ruby>STDIN.each_line do |line|
puts line
end</lang>
=={{header|D}}==
|