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