Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: How to change these small one-liners into Perl6 code?

by raiph (Chaplain)
on Dec 24, 2012 at 01:51 UTC ( #1010148=note: print w/replies, xml ) Need Help??


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?

https://github.com/perl6/perl6-examples/tree/master/euler should interest you.

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
    Nice code!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-10-01 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.