5 null @=> ListItem @ next;
6 fun void push ( ListItem it ) {
7 if ( next != null ) next.push(it);
11 return ( next == null ) ? 1 : 0 ;
15 if ( next.isLast() != 0) {
16 next @=> ListItem @ n;
20 else return next.pop();
28 fun void push( ListItem it) {
29 if ( root == null ) it @=> root;
33 if ( root == null ) return null;
34 else if ( root.isLast() != 0 ) {
35 root @=> ListItem @ ret ;