Lines Matching refs:tail
43 * <p>Lists are always trailed by a sentinel element, whose head and tail
61 public List<A> tail;
63 /** Construct a list given its head and tail.
65 List(A head, List<A> tail) {
66 this.tail = tail;
78 public List<Object> setTail(List<Object> tail) {
138 return tail == null;
145 return tail != null;
154 while (l.tail != null) {
155 l = l.tail;
165 public List<A> setTail(List<A> tail) {
166 this.tail = tail;
167 return tail;
183 if (xs.tail.isEmpty()) return prepend(xs.head);
184 // return this.prependList(xs.tail).prepend(xs.head);
192 rev = rev.tail;
205 if (isEmpty() || tail.isEmpty())
209 for (List<A> l = this; l.nonEmpty(); l = l.tail)
246 l = l.tail;
271 for (List<A> l = tail; l.nonEmpty(); l = l.tail) {
293 while (l.tail != null) {
295 l = l.tail;
310 while (t.tail != null && oIter.hasNext()) {
314 t = t.tail;
324 while (xs.tail != null && ys.tail != null) {
330 xs = xs.tail;
331 ys = ys.tail;
333 return xs.tail == null && ys.tail == null;
341 while (l.tail != null) {
347 l = l.tail;
357 while (t.tail != null) {
359 t = t.tail;
392 if (tail == null)
397 return elems.tail != null;
400 if (elems.tail == null)
403 elems = elems.tail;
417 for (int i = index; i-- > 0 && !l.isEmpty(); l = l.tail)
446 for (List<A> l = this; l.tail != null; l = l.tail, i++) {
456 for (List<A> l = this; l.tail != null; l = l.tail, i++) {
477 for (List<A> l = this; l.tail != null; l = l.tail, i++) {