Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[rosalind] flatten the Fibonacci Rabbits
  • Loading branch information
stmuk committed Sep 24, 2015
1 parent e599966 commit 2a8b315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/rosalind/fibd-grondilu.pl
Expand Up @@ -19,7 +19,7 @@
=end pod

sub MAIN(Int $n = 6, Int $m = 3) {
my @population = 1, 0 xx ($m-1);
my @population = (1, 0 xx ($m-1)).flat;
for 1 .. $n-1 -> \n {
@population.unshift: [+] @population[1..*-1]; # reproduction
@population.pop; # death
Expand Down

0 comments on commit 2a8b315

Please sign in to comment.