NOTE: I am a lisp newbie. I'm sure our resident lisp experts can create much better (both faster, shorter and clearer) solutions than the one above.
Even I could have created something shorter but I thought it would be fun to apply the "utility function" approach in decomposing the problem. --jfc -- http://mail.python.org/mailman/listinfo/python-list