Warning: session_start(): open(/var/lib/php/sessions/sess_eq63q3nh3rfo28v8flhgo0js0c, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass AppendableChain extends Chain { A element; Chain next, last; int size; *() {} // only used internally *(A *element) { size = 1; last = this; } *(A *element, Chain *next) { if (next != null) { size = next.size; last = next.last; } else last = this; size++; } toString { ret str(toList()); } bool add(A a) { Chain newLast = new Chain(a, null); last.next = newLast; last = newLast; ++size; true; } AppendableChain popFirst() { if (next == null) null; new AppendableChain a; a.element = next.element; a.next = next.next; a.size = size-1; ret a; } ArrayList toList() { ArrayList l = emptyList(size); Chain c = this; while (c != null) { l.add(c.element); c = c.next; } ret l; } // TODO: optimize public Iterator iterator() { ret toList().iterator(); } }