From: Trans Date: 2008-01-09T11:41:19+09:00 Subject: Re: p returning its argument? On Jan 8, 9:35�pm, "David A. Black" wrote: > Hi -- > > On Wed, 9 Jan 2008, Nikolai Weibull wrote: > > On Jan 9, 2008 1:14 AM, David A. Black wrote: > > >> I might have missed this somewhere, but I'm wondering why p is now > >> returning its argument > > > To make it easy to drop in a p in a chain of methods. > > It's a private method, though, so it can't go in the middle of a > chain, and it's also functional (i.e., p 1, rather than 1.p). I guess > it could go at the beginning of a chain. I'm not sure I'm getting it, > thoguh. def x return r end def x return p(r) end And x = foo x = p(foo) And foo(bar(baz)) foo(bar(p(baz)) T.