Monadic ;: takes literal arguments. Convert the results to character.
   ;: ": 1 2 3 + 4 5 6
+-----+
|5 7 9|
+-----+

It boxes J words or tokens, close, but not quite English words. In this case
"1 2 3" is a single word in J.
   ;: 'The result is ' , ": 1 2 3 + 4 5 6
+---+------+--+-----+
|The|result|is|5 7 9|
+---+------+--+-----+

6!:2 executes literals. Put the calculation in quotes.
   6!:2 'p:1000000'
0.000152044

On Wed, Jul 6, 2011 at 4:10 AM, David Vaughan
<[email protected]>wrote:

> Hi,
>
> I'm new to J and just installed the 7.01 64-bit MAC version, and a lot of
> commands are working, but some are giving me domain errors, even though I'm
> copying the sentences from one of the books.
>
> Some examples that give me a domain error:
>   ;: 1 2 3 + 4 5 6
>
> As I understand it, that should put all the words into boxes.
>
> Another example is the time stuff:
>   6!:2 p:1000000
>
> Do I need to change some paths of things, or is my install corrupt/this
> particular version broken?
>
> Thanks in advance.
> ___________________________
>
> David Vaughan
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to