From: Moses Hall Date: 2003-07-12T08:38:24+09:00 Subject: [Q]Ruby LISP-ish stuff I was wondering if there are plans to add some of the more useful LISP functions to the array class. What I have in mind is something more or less like this... class Array def rest self[1,-1] end def pushnew(x) push x unless member? x end end #class Array I'm not at all fond of LISP but I use it a lot at work and these functions in particular have proven extremely useful when I use them in Ruby. Certainly these would be more efficient if included in the core language. If no one says "that is an idiotic idea" then perhaps I shall file an RCR. /\/\oses "zbfrf@oyhtf.pbz".rot13 www.blugs.com