On Thu, 20 Oct 2005, Louis J Scoras wrote: >> But inject *is* functional! It's equivalent to Lisp's accumulate. It >> doesn't modify the list at all or have any side-effects. > > > Exactly. i don't think it is functional because the name of the function cannot be used as a first class object. eg you cannot to the_function = the_other_function without calling 'the_other_function' __unless__ the objects in question are first class objects. in ruby you must use lambda to acheive something close to this. at least i think this right... -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | anything that contradicts experience and logic should be abandoned. | -- h.h. the 14th dalai lama ===============================================================================