Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by raiph (Hermit)
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".


Comment on Re^3: How to change these small one-liners into Perl6 code?
Download Code
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 surveying the Monastery: (8)
As of 2014-12-25 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls