MappingPackage1 AΒΆ
mappkg.spad line 58 [edit on github]
A: SetCategory
various Currying operations.
- ^: (A -> A, NonNegativeInteger) -> A -> A
f^nis the function which is then-fold application off.
- coerce: A -> () -> A
coerce Achanges its argument into a nullary function.
- id: A -> A
id xisx.
- nullary: A -> () -> A
nullary Achanges its argument into a nullary function.
- recur: ((NonNegativeInteger, A) -> A) -> (NonNegativeInteger, A) -> A
recur(g)is the functionhsuch thath(n, x)= g(n, g(n-1, ..g(1, x)..)).