Thun/docs/reference/anamorphism.md

655 B

Combinator Build a list of values from a generator program `G` and a stopping predicate `P`. [P] [G] anamorphism
## anamorphism Combinator Build a list of values from a generator program G and a stopping predicate P. [P] [G] anamorphism
   [P] [pop []] [G] [dip swons] genrec

Definition

[pop](#pop) \[

Example

The range function generates a list of the integers from 0 to n - 1:

0 <=

Discussion

See the Recursion Combinators notebook.