Cons lst = null; for (int i = 0; i < 3; i++ ) lst = cons( i, lst ); lst = nreverse(lst);
What is the value of lst?
cons builds the list backwards compared to the order of item creation. nreverse reverses it, using the same Cons cells ("Read my lips: No new Conses!"), putting the result into forward order.
Contents Page-10 Prev Next Page+10 Index