James Edward Gray II: > On Oct 5, 2005, at 1:51 AM, Dave Burt wrote: > >> I set up a LISPy environment and copied the LISP code as closely as >> possible, using Ruby procs, arrays and strings. > > class Array > def inspect # (JUST FOR FUN, MAKE ARRAYS LOOK LIKE LISP LISTS) > '(' + map{|x| x.upcase }.join(" ") + ')' > end > end > > That cracked me up! ;) ["i", "had", "had", "enough", "of", "this"] and something was lacking in the obvious presentation, (AND THIS MADE ME FEEL BETTER ABOUT ALL THE RUBY SYNTAX I'D BEEN ABUSING) Thanks for reading my horrid code, James - too many lists and first-class functions for my taste :) Dave