Cons lst = null; for (int i = 0; i < 3; i++ ) lst = append( list(i), lst );
What is the value of lst?
Answer: E
This code is adding the item i to the front of the list (in a somewhat wasteful fashion: lst = cons( i, lst ) would do the same thing).
Contents Page-10 Prev Next Page+10 Index