On Thu, Sep 3, 2009 at 5:42 PM, Sherlock, Ric<[email protected]> wrote: > Are there advantages of defining pad as an adverb rather than a verb? i.e. > Why not: > > pad=: dyad define > adj1=: <.x%2 > adj2=: x-1 > ((-@(adj2 + ]) {. (adj1 + ]) {. [) (#x) {. $) y > )
That was how I had previously defined pad. However, in the context where I was using it, I was constructing a new verb which would always have the same left argument. So using the adverb form pleased my sense of aesthetics. And I did not bother changing it again, when I copied and pasted it into this thread. FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
