Remarkable with / or `:3 is the order of insertion. In http://www.jsoftware.com/help/dictionary/d612.htm it is illustrated that (+`*/ 1 2 3 4 5) -: (1+2*3+4*5) But what about +`*/ 2 3 4 5 ? I would have thought it to result in 46, being 2*3+4*5 , insertion being done from the right side, right-to-left being the predominant direction. However
+`*/2 3 4 5 29 is equal to 2+3*4+5 29 so insertion is done starting at the left side! As is shown, btw, in http://www.jsoftware.com/help/dictionary/d420.htm R.E. Boss > -----Oorspronkelijk bericht----- > Van: [email protected] [mailto:programming- > [email protected]] Namens Steven Taylor > Verzonden: dinsdag 31 augustus 2010 12:45 > Aan: [email protected] > Onderwerp: Re: [Jprogramming] Why `3: > > Bo wrote: > > I wonder why the 'insert' / is replaced with > > 'evoke gerund' `3: > > Roger responded: > > Because that is how it's represented internally. > > You may not think that that is a good reason > > but it's the immediate reason. > > Raul followed-up: > > The alternative is more concise. > Dan Observed: > >I personally enjoy these little corners where the interpreter reveals its > > secrets. > > You can learn a lot about J from such hints. And, by extension, about > > programming language design. > > thanks for pointing that out Dan. I got to the thread late, read your > post, > and found myself looking at evoke gerund with more appreciation. > > http://www.jsoftware.com/help/dictionary/d612.htm > > What that said to me many J expressions could be gerrunds. My > first impression was that all expressions could be a series of gerrunds... > but that quickly fell down when I got to scan \ > > It's a nice approach though for the J interpreter. > > -Steven > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
