public class LList<A> extends Cons implements java.lang.Iterable<A>, java.util.Iterator<A>
Constructor and Description |
---|
LList() |
LList(A x) |
LList(A x,
LList l) |
LList(A x,
java.lang.Object y) |
Modifier and Type | Method and Description |
---|---|
LList<A> |
append(LList<A> a) |
LList<A> |
append(LList<A> a,
LList b) |
LList<A> |
cons(A x) |
LList<A> |
cons(A x,
LList l) |
boolean |
endP() |
A |
first() |
boolean |
hasNext() |
java.util.Iterator<A> |
iterator() |
static void |
main(java.lang.String[] ignore) |
A |
next() |
void |
remove() |
LList<A> |
rest() |
int |
size() |
public LList()
public LList(A x)
public LList(A x, java.lang.Object y)
public boolean endP()
public int size()
public static void main(java.lang.String[] ignore)
public java.util.Iterator<A> iterator()
iterator
in interface java.lang.Iterable<A>
public boolean hasNext()
hasNext
in interface java.util.Iterator<A>
public void remove()
remove
in interface java.util.Iterator<A>