in reply to Re^2: How to change these small one-liners into Perl6 code?
in thread How to change these small one-liners into Perl6 code?
Five solutions have been added to this repo over the last 4 years. The latest one was added 18 days ago:
say [+] grep * %% (3|5), ^1000;
This means "say the sum of numbers that are divisible by 3 or 5 in the range zero up to (but not including) 1000".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to change these small one-liners into Perl6 code?
by ABCXYZ (Novice) on Dec 24, 2012 at 02:49 UTC |