View difference between Paste ID: h1sa4SGu and DGwRfFaR
SHOW: | | - or go back to the newest paste.
1
rev(Node xs):
2
   result = nil;
3
   while (xs != nil):
4
     old_next = xs.next()
5-
     xs = xs.next(); // uh oh
5+
6
     xs = old_next;
7
   return result;