Input loop: Difference between revisions

Content added Content deleted
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku in comments)
Line 2,282: Line 2,282:
(formerly Perl 6)
(formerly Perl 6)


In Perl 6, filehandles etc. provide the <code>.lines</code> and <code>.words</code> methods which return lazy lists, and can thus they be iterated using a <code>for</code> loop...
In Raku, filehandles etc. provide the <code>.lines</code> and <code>.words</code> methods which return lazy lists, and can thus they be iterated using a <code>for</code> loop...


'''Line-by-line''' <small>''(line endings are automatically stripped)''</small>
'''Line-by-line''' <small>''(line endings are automatically stripped)''</small>