Padovan n-step number sequences: Difference between revisions
m
→{{header|AppleScript}}: Negative values of N explicitly excluded.
(→Python: Functional: Scrupulously idiomatic. Thoroughly linted. This is a) vandalism, and b) not adult behaviour. Get some help.) |
m (→{{header|AppleScript}}: Negative values of N explicitly excluded.) |
||
Line 167:
end if
{}
else▼
unfoldr(recurrence, take(1 + n, seed))
end if
end padovans
Line 185 ⟶ 189:
end |λ|
end script
fTable("Padovan N-step Series:", str, justified, ¬
Line 397 ⟶ 400:
set c to class of xs
if list is c then
if 0 <
items 1 thru min(n, lng) of xs
else
{}
|