On Mon, Jun 30, 2008 at 07:25:11AM -0500, Patrick R. Michaud wrote: : So my question is really whether or not we consider grep and : reverse to be universal methods in this sense also, so that : C< $x.grep(...) > and C< $x.reverse > will work even if $x : isn't a value that normally does list-type operations. : : I'm suspecting that the answer is "yes, they are universal", : but wanted to confirm it.
Confirmed. (Though note that Str.reverse probably overrides Any.reverse, unless we give string reversal a different name.) Larry