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