ajs / perl6-Math-Sequences

Useful mathematical sequences
Artistic License 2.0
3 stars 9 forks source link

Add @A001519 #131

Closed MasterDuke17 closed 5 years ago

MasterDuke17 commented 5 years ago

Fixes #83

AlexDaniel commented 5 years ago

Wouldn't it be easier with a sequence operator?

our @A001519 is export = 1, 1, -> $a2, $a1 { 3 * $a1 - $a2 } ... *;
AlexDaniel commented 5 years ago

Same in this PR: https://github.com/ajs/perl6-Math-Sequences/pull/128 (looks like it only depends on two previous elements)

MasterDuke17 commented 5 years ago

Yep. I've been enamored with multis recently and reaching for them first for everything.

MasterDuke17 commented 5 years ago

Updated.

AlexDaniel commented 5 years ago

Same coming for https://github.com/ajs/perl6-Math-Sequences/pull/128/files I assume, yes? :)

Thanks!