This is understood. What I meant by systematic is that Scanning is one of fundamental properties of J programming, as in "loopless code". Also it is generalized from classic APL.
So it would explore different types of scan as in Jose's examples and examine what properties and constraints they have. Such as when direct single pass scan would be inefficient compared with alternative multiple scans. This problem seems very trivial, at least for C code. Yet in J it requires a lot of effort to figure out. It would be good, next time, just to point to that reference. Is it possible, or it's like to ask for a program that does anything? I also liked Jose's tool to construct and visualize application of verbs to arguments. It would also be good to centralize a collection of various such tools in a toolbox in Wiki. ts is another such tool, Primitives to Mnemonics, etc. --- Roger Hui <[EMAIL PROTECTED]> wrote: > Appendix B of the dictionary > http://www.jsoftware.com/help/dictionary/special.htm > says that: > > +/\ monad also * and - ; on Windows, assembly code for integer arguments > +/\. monad also * and - ; on Windows, assembly code for integer arguments > > > > ----- Original Message ----- > From: Oleg Kobchenko <[EMAIL PROTECTED]> > Date: Wednesday, December 13, 2006 1:32 pm > Subject: RE: [Jprogramming] What a drag > > > OK. So +/\ is special code then. > > Thanks, Raul and Jose. > > > > Q=: _2+?1000$5 > > (+/\ -: ([+])/\) Q > > 1 > > (+/\ -: ([+])~/\.&.|.) Q > > 1 > > ts '+/\ Q' > > 1.02999e_5 5248 > > ts '+/\.&.|. Q' > > 1.50313e_5 9728 > > ts '([+])/\ Q' > > 0.311365 18304 > > ts '([+])~/\.&.|. Q' > > 0.000485823 10496 > > > > > > Still, it's kind of murky. > > Is there a link where it is systematically treated? > > > > Also here is a relationship, > > > > -/\1 2 3 4 5 > > 1 _1 2 _2 3 > > -/@|.\.&.|.1 2 3 4 5 > > 1 _1 2 _2 3 > > > > -/\.&.|.1 2 3 4 5 > > 1 1 2 2 3 > > -/@|.\1 2 3 4 5 > > 1 1 2 2 3 ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
