Orbital library

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

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

Nested Class Summary
static interface BinaryFunction.Composite
          A composed BinaryFunction.
 
Nested classes/interfaces inherited from interface orbital.logic.functor.Functor
Functor.Specification
 
Field Summary
static Functor.Specification callTypeDeclaration
          specification of these functors.
 
Method Summary
 java.lang.Object apply(java.lang.Object first, java.lang.Object second)
          Called to apply the BinaryFunction.
 
Methods inherited from interface orbital.logic.functor.Functor
equals, hashCode, toString
 

Field Detail

callTypeDeclaration

static final Functor.Specification callTypeDeclaration
specification of these functors.

Method Detail

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 argument
second - generic Object as second argument
Returns:
returns a generic Object.

Orbital library
1.3.0: 11 Apr 2009

Copyright © 1996-2009 André Platzer
All Rights Reserved.