MappingPackageInternalHacks1 AΒΆ
mappkg.spad line 1 [edit on github]
A: SetCategory
various Currying operations.
- iter: (A -> A, NonNegativeInteger, A) -> A
iter(f, n, x)
appliesf
n
times tox
.
- recur: ((NonNegativeInteger, A) -> A, NonNegativeInteger, A) -> A
recur(g, n, x)
isg(n, g(n-1, ..g(1, x)..))
.