Padovan n-step number sequences: Difference between revisions

Content added Content deleted
Line 1,000: Line 1,000:


===Python: Functional===
===Python: Functional===
{{improve|Python|No attempt made to be idiomatic }}


Defined in terms of a generic anamorphism, using the unfold abstraction, which is dual to reduce.
Defined in terms of a generic anamorphism, using the unfold abstraction, which is dual to reduce.