Closed MasterDuke17 closed 5 years ago
Wouldn't it be easier with a sequence operator?
our @A001519 is export = 1, 1, -> $a2, $a1 { 3 * $a1 - $a2 } ... *;
Same in this PR: https://github.com/ajs/perl6-Math-Sequences/pull/128 (looks like it only depends on two previous elements)
Yep. I've been enamored with multis recently and reaching for them first for everything.
Updated.
Same coming for https://github.com/ajs/perl6-Math-Sequences/pull/128/files I assume, yes? :)
Thanks!
Fixes #83