|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.data.hlist.HPre.HAdd<A,B,C>
public static final class HPre.HAdd<A extends HPre.HNat<A>,B extends HPre.HNat<B>,C extends HPre.HNat<C>>
Type-level integer arithmetic
Method Summary | ||
---|---|---|
static
|
add(HPre.HSucc<N> a,
HPre.HSucc<M> b,
H h)
The sum of numbers a and b is one greater than the sum of b and the predecessor of a. |
|
static
|
add(HPre.HSucc<N> a,
HPre.HZero b)
The sum of zero and any other number is that number. |
|
static
|
add(HPre.HZero a,
HPre.HSucc<N> b)
The sum of zero and any other number is that number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <N extends HPre.HNat<N>> HPre.HAdd<HPre.HZero,HPre.HSucc<N>,HPre.HSucc<N>> add(HPre.HZero a, HPre.HSucc<N> b)
public static <N extends HPre.HNat<N>> HPre.HAdd<HPre.HSucc<N>,HPre.HZero,HPre.HSucc<N>> add(HPre.HSucc<N> a, HPre.HZero b)
public static <N extends HPre.HNat<N>,M extends HPre.HNat<M>,R extends HPre.HNat<R>,H extends HPre.HAdd<N,HPre.HSucc<M>,R>> HPre.HAdd<HPre.HSucc<N>,HPre.HSucc<M>,HPre.HSucc<R>> add(HPre.HSucc<N> a, HPre.HSucc<M> b, H h)
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |