orbital.logic.functor
Interface BinaryFunction
- All Superinterfaces:
- Functor
- All Known Subinterfaces:
- BinaryFunction, BinaryFunction.Composite, BinaryFunction.Composite
public interface BinaryFunction
- extends Functor
A functor that encapsulates the binary function f/2
.
Like "r = f(a,b)"
it applies on
- argument first of type A1.
- argument second of type A2.
- returns of type B.
The set of all binary functions of type A1×A2→B is Map(A1×A2,B) = BA.
These functions have the form
f: A1×A2→B; (a1,a2) ↦ f(a1,a2)
Additionally, the types A1×A2→B and A1→(A2→B)
are isomorph and
Map(A1×A2,B) ≅ Map(A1,Map(A2,B))
- Author:
- André Platzer
- See Also:
Function
- Structure:
- inherit Functor
Method Summary |
java.lang.Object |
apply(java.lang.Object first,
java.lang.Object second)
Called to apply the BinaryFunction. |
callTypeDeclaration
static final Functor.Specification callTypeDeclaration
- specification of these functors.
apply
java.lang.Object apply(java.lang.Object first,
java.lang.Object second)
- Called to apply the BinaryFunction. f(a,b).
- Parameters:
first
- generic Object as first argumentsecond
- generic Object as second argument
- Returns:
- returns a generic Object.
Copyright © 1996-2009 André Platzer
All Rights Reserved.