Padovan n-step number sequences: Difference between revisions

m
m (→‎Python: Functional: Expanded preamble, explicitly excluded negative values of N.)
Line 1,003:
Defined in terms of a generic anamorphism, using the unfold abstraction, which is dual to reduce.
 
Aims for a legible expression of the Padovan recurrence relation, and a good level of reliability and code reuse, andas well foras rapid drafting and refactoring.
 
Functional composition, while widely practiced and written about in the context of Python, is not the dominant Python tradition. The documentation of the Python itertools module does, however, acknowledges its debt to languages like ML and Haskell, both for an algebra of composition, and for a source of function-naming traditions.
9,655

edits