MappingPackage2(A, C)ΒΆ
mappkg.spad line 108 [edit on github]
A: SetCategory
C: SetCategory
various Currying operations.
- const: C -> A -> C
const c
is a function which producesc
when applied to its argument.
- constant: (() -> C) -> A -> C
constant(f)
is the functiong
such thatg a= f ()
.
- curry: (A -> C, A) -> () -> C
curry(f, a)
is the functiong
such thatg ()= f a
.
- diag: ((A, A) -> C) -> A -> C
diag(f)
is the functiong
such thatg a = f(a, a)
.