Skip to content

Commit 2a8b315

Browse files
committed
[rosalind] flatten the Fibonacci Rabbits
1 parent e599966 commit 2a8b315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

categories/rosalind/fibd-grondilu.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
=end pod
2020

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

0 commit comments

Comments
 (0)