public static class Value.List.Cell extends Value.List
Value.List.NIL
.Value.List.Cell
Value.Option.GP
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
protected Value |
hd
The head, hd, and tail, tl, of 'this' List Cell.
|
protected Value |
tl
The head, hd, and tail, tl, of 'this' List Cell.
|
NIL
Modifier and Type | Method and Description |
---|---|
Value |
hd()
The head of the List.
|
Value.Bool |
isNil()
ffalse
|
int |
n()
A Cell is Option number 1 of List (NIL is number 0).
|
int |
nElts()
2 elements
|
Value |
tl()
The tail (rest) of the List.
|
Value |
uOp(int op)
Unary operator, op, i.e., null, hd, or tl, on Cells.
|
elt, print, type
closes, compareTo, opens, separator
AoM, elts, frth, fst, nlAoM, snd, thrd, toString
protected Value hd
protected Value tl
public int n()
n
in class Value.Option
public int nElts()
nElts
in class Value.Option
public Value.Bool isNil()
isNil
in class Value.List
public Value hd()
hd
in class Value.List
public Value tl()
tl
in class Value.List