Anonymous user
Pascal's triangle: Difference between revisions
m
→{{header|Perl 6}}: Added "one-liner" header
No edit summary |
m (→{{header|Perl 6}}: Added "one-liner" header) |
||
Line 784:
return 1;}
</lang>
=== one-liner ===
The following routine returns a lazy list of lines using the series operator. With a lazy result you need not tell the routine how many you want; you can just use a slice subscript to get the first N lines:
|