when both arguments are identical you can make a verb that requires two arguments into an expression with one argument by using the adverb ~
x+x +~x Donna [email protected] On 2012-10-07, at 12:06 AM, Donna Y <[email protected]> wrote: > How about: when both arguments of are identical you can make a verb that > normally needs two arguments into an expression with one argument > > x+x > +~x > > Donna > [email protected] > > > On 2012-10-06, at 2:30 PM, Brian Schott <[email protected]> wrote: > >> John, >> >> I am not the author of that blog; Konrad Hinsen is. >> However, I had the same confusion when I first read the blog. >> >> On Sat, Oct 6, 2012 at 1:27 PM, John Corrie <[email protected]> wrote: >>> Making J available on mobile devices is exciting, having waited impatiently >>> for APL to become more widely used I hope that this might do it for J. >>> >>> I have a suggestion re the text in your link, I quote:- >>> >>> "For example, the adverb ~ makes a one-argument verb from a two-argument >>> verb by setting the two arguments equal. With + standing for plain addition, >>> +~ thus doubles its argument: >>> >>> +~ 1 5 10 20 >>> 2 10 20 40 " >>> >>> I found the 'one argument verb from 2 argument verb' confusing, and wanted >>> to say it the other way round. Why not put in the extra row:- >>> >>> +~ 1 5 10 20 >>> Is the same as >>> 1 5 10 20 + 1 5 10 20 >>> >>> John Corrie >> >> -- >> (B=) >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
