|
|||||||||
| Home >> All >> com >> memoire >> [ silk overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.memoire.silk
Class SilkPair

java.lang.Objectcom.memoire.silk.SilkSchemeUtils
com.memoire.silk.SilkPair
- public class SilkPair
- extends SilkSchemeUtils
A SilkPair has two fields, first and rest (or car and cdr). The empty list is represented by null. The methods that you might expect here, like first, second, list, etc. are instead static methods in class SilkSchemeUtils.
| Field Summary | |
java.lang.Object |
first
The first element of the pair. |
java.lang.Object |
rest
The other element of the pair. |
| Fields inherited from class com.memoire.silk.SilkSchemeUtils |
FALSE, ONE, TRUE, ZERO |
| Constructor Summary | |
SilkPair(java.lang.Object first,
java.lang.Object rest)
Build a pair from two components. |
|
| Method Summary | |
boolean |
equals(java.lang.Object x)
Two pairs are equal if their first and rest fields are equal. |
(package private) void |
stringifySilkPair(boolean quoted,
java.lang.StringBuffer buf)
Build up a String representation of the SilkPair in a StringBuffer. |
java.lang.String |
toString()
Return a String representation of the pair. |
| Methods inherited from class com.memoire.silk.SilkSchemeUtils |
chr, chr, cons, equal, eqv, error, first, inPort, length, list, list, listStar, listToString, listToVector, num, num, outPort, p, p, rest, reverse, second, setFirst, setRest, str, stringify, stringify, stringify, sym, third, truth, truth, vec, vectorToList, warn, write |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
first
public java.lang.Object first
- The first element of the pair.
rest
public java.lang.Object rest
- The other element of the pair.
| Constructor Detail |
SilkPair
public SilkPair(java.lang.Object first, java.lang.Object rest)
- Build a pair from two components.
| Method Detail |
equals
public boolean equals(java.lang.Object x)
- Two pairs are equal if their first and rest fields are equal.
toString
public java.lang.String toString()
- Return a String representation of the pair.
stringifySilkPair
void stringifySilkPair(boolean quoted,
java.lang.StringBuffer buf)
- Build up a String representation of the SilkPair in a StringBuffer.
|
|||||||||
| Home >> All >> com >> memoire >> [ silk overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC