| |
|
| java.lang.Object org.w3c.tools.sexpr.Cons
Cons | public class Cons implements SExpr(Code) | | Basic class for implementing linked lists a la Lisp.
|
Constructor Summary | |
public | Cons(Object left, Object right) Initializes a Cons cell with the left and right "subtrees". | public | Cons(Object left) Initializes a Cons cell with a left subtree only. |
Cons | public Cons(Object left, Object right)(Code) | | Initializes a Cons cell with the left and right "subtrees".
|
Cons | public Cons(Object left)(Code) | | Initializes a Cons cell with a left subtree only.
Right subtree will be set to null.
|
left | public Object left()(Code) | | Returns the left subtree (i.e. the head) of a cons cell.
|
right | public Object right()(Code) | | Returns the right subtree (i.e. the tail) of a cons cell.
|
|
|
|