de.cm.frw.core.fun.impl
Class LP.ConsPair

java.lang.Object
  extended by de.cm.frw.core.fun.impl.Function
      extended by de.cm.frw.core.fun.impl.LP.ConsCell
          extended by de.cm.frw.core.fun.impl.LP.ConsPair
All Implemented Interfaces:
Pair
Enclosing class:
LP

public static class LP.ConsPair
extends LP.ConsCell
implements Pair

Use a ConsCell to implement Pair

Author:
cm

Nested Class Summary
 
Nested classes/interfaces inherited from class de.cm.frw.core.fun.impl.Function
Function.InvalidArguments
 
Constructor Summary
LP.ConsPair(java.lang.Object car, java.lang.Object cdr)
           
 
Method Summary
 java.lang.Object first()
           
 java.lang.Object second()
           
 
Methods inherited from class de.cm.frw.core.fun.impl.LP.ConsCell
checkArguments, isEmpty, operate, toString
 
Methods inherited from class de.cm.frw.core.fun.impl.Function
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, arity, box, box, box, box, box, box, box, box, box, box, box, box, box, box, box, is, main, map, map, reduce, unbox, val
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LP.ConsPair

public LP.ConsPair(java.lang.Object car,
                   java.lang.Object cdr)
Method Detail

first

public java.lang.Object first()
Specified by:
first in interface Pair

second

public java.lang.Object second()
Specified by:
second in interface Pair