Skip to content

Instantly share code, notes, and snippets.

@retokromer
Created December 20, 2015 10:43
Show Gist options
  • Save retokromer/bdea769e90fdc277fc13 to your computer and use it in GitHub Desktop.
Save retokromer/bdea769e90fdc277fc13 to your computer and use it in GitHub Desktop.
Testing Perl 6
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