It's a conjunction because it combines two verbs and I use it frequently to
do something within the boxes of a boxed array.  This particular use is
common enough to have its own word defined in stdlib.ijs: "each" (though I
usually use the symbolic version "&.>").

For instance, if I have a list of filenames of all my text files:

   #flnms=. 0{"1 dir '*.txt'
14

I can put the contents of each file in a vector:

   fls=. fread &.> flnms

and do whatever I want on the contents of each, like look at their sizes:

   flnms,.#&.>fls
+------------------------------------------------+-----+
|ASCIIArt.txt                                    |4035 |
+------------------------------------------------+-----+
|internetSlang.txt                               |11543|
+------------------------------------------------+-----+
|miscOddWords.txt                                |132  |
...
+------------------------------------------------+-----+
|SecretLifeOfPronouns-Notes.txt                  |899  |
+------------------------------------------------+-----+


On Fri, Jan 6, 2012 at 1:40 AM, Daniel Lyons <fus...@storytotell.org> wrote:

>
> On Jan 5, 2012, at 11:08 AM, Devon McCormick wrote:
>
> > Have people seen this: http://prog21.dadgum.com/index.html ?
>
>
> I saw it, and it made me wonder whether this verb (adverb?) is widely
> used, (and likewise the obverse-defining verb, :.).
>  Are they?
>
> —
> Daniel Lyons
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to