On Thu, Apr 30, 2009 at 10:09 PM, I wrote: > On Thu, Apr 30, 2009 at 3:57 PM, Don Watson <[email protected]> wrote: >> sd=: 4 : '%: (%<:#y) * +/ *: y -(+/y)%#y' >> >> but the student is going to ask why we put it in quotes when the >> rest of Mathematics isn't in quotes and doesn't write 4: in the front. >> Seemingly little barriers can actually be big barriers. > > sd=: verb def '%: (%<:#y) * +/ *: y -(+/y)%#y'
errata: sd=: dyad def '%: (%<:#y) * +/ *: y -(+/y)%#y' When I provide a single definition, J assumes it's a monad definition rather than a dyad definition. (I wonder if the presence of 'x' should override this treatment?) -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
