It looks like there is a typo in command with `mat`: .;  should be ;.  .
'mat` is not a verb but a noun, btw.
I think tilde is a dyadic tilde, not monadic and swaps the arguments of -.
in this case.

On Sat, Dec 7, 2013 at 9:08 AM, Jon Hough <[email protected]> wrote:

> I'd like to thank everyone for replying.
> I suppose I should think about using J7.
>
> I did try Devon's example:
> "You can read CSV files in J pretty simply without using any predefined
>  verbs like this:
>
>  mat=. <.;_1&>',',&.><;._2 CR-.~freads jpath '~temp/test.csv'
>
> and I got the error:
> |domain error
> |   mat=.<.;    _1&>',',&.><;._2 CR-.~freads jpath'~temp/test.csv'
>
> As an aside, I don't really understand what the "mat" function is doing.
> I'm still reading
> "J for C Programmers" so my understanding is a little shaky, but mat seems
> to be monadic, with the argument as the file to read. I'm not sure if this
> is an example of a tacit verb, because the argument ('~temp/test.csv')
> seems to be hardcoded into the verb.
>
> I assume:
> freads jpath '~temp/test.csv'
> reads the file.(http://www.jsoftware.com/user/script_files.htm)
> I do not really understand this: ~freads (I do not understand this use of
> the monadic tilde)
> I am trying to read this verb from right to left, but am not getting very
> far, even using the J dictionary and reference card for support.
> I would really appreciate any help at all in deciphering this.
>
> Thanks and regards,
> Jon
>
>
-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to