Created
December 20, 2015 10:43
-
-
Save retokromer/bdea769e90fdc277fc13 to your computer and use it in GitHub Desktop.
Testing Perl 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
print 'Fibonacci number: '; | |
for $*IN.get { | |
my @fib = 1, 1, *+* ... *; | |
say "Fibonacci number #$_ is @fib[$_-1]"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment