x = nil; for(i = 0; i < 10; i++) x = cons(i, x); while(!isnil(x)){ print(car(x)); x = cdr(x); }