From: x1 Date: 2005-10-03T11:56:26+09:00 Subject: Re: (4+3).reverse # => 1? Hal.. good point. :-) lol.. Ok.. ("8/2").inverse_cal # => 16 :-) //my way of running I was actually studing some finance crap and ran by a definition for term x.. in taking notes, I wrote down something like.. x - the date when x blah then there was a term, non-x which is non-x the date when x not blah Me being lazy an a ruby enthusiast wrote down non-x = x.reverse lol.. then my brain started thing about reversing more than just strings.. logic.. bah.. I'm a nut. --disregard. On 10/2/05, David A. Black wrote: > Hi -- > > On Mon, 3 Oct 2005, x1 wrote: > > > Does anything like this exist? > > > > a method of inversing the given operation.. > > > > (4�).revese # yields 2, the square of 4 > > (8/4).reverse # yields 32, the product of 8*4 > > I don't think it could, and I know that it shouldn't :-) The thing > is, whatever follows the dot is being sent to the object that's > returned by the expression (8/4), and not to the expression itself. > So you're asking to reverse 2. > > > David > > -- > David A. Black > dblack@wobblini.net > >