Create your blog and photo album with postbit
Create your blog and photo album

Create new post


Upload a picture:
Tags (keywords separated by comma)

Save Cancel
perl:   Followers: 2 ; Following: 2

Explore perl's photo albums:
Perl images (1)
Photos from posts (2)

Perl6 is working! Great news!!!

Finally Perl6 is working.

It's so good and with so many "atractions" that it seems a playground!

I can't stop playing with it.

My first Perl 6 program:

sub Σ(@array_to_sum) { return [+] @array_to_sum; }

say Σ (1,2,3,4); # It will print 10, that is 1+2+3+4
It uses the sigma greek symbol to do a summation in Perl6.
The summation function is defined in the first line, using unicode sigma character, and it sums all array elements.


Post by perl (2015-12-27 23:42)

Post your comment:

Name: Email: Site:

| Explore users | New posts | Create your blog | Create your photo album |
| About Postbit | Our blog | Terms of use | Contact Postbit |

Copyright © 2018 -