655 B
655 B
Combinator Build a list of values from a generator program `G` and a stopping predicate `P`. [P] [G] anamorphism
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.