lucas-numbers/lucas-05.p6

Run Settings
LanguageRaku
Language Version
Run Command
sub lucas(Int $nth where * >= 0) returns Int { given $nth { when 0 { 2 } when 1 { 1 } default { lucas($nth - 1) + lucas($nth - 2) } } } say lucas(-3);
Editor Settings
Theme
Key bindings
Full width
Lines