I  tried your g  and got a different result than you show
g=: 13 : '>:@i.y'

g

>:@i.

g 4

1 2 3 4
Also- where you get an error

 :>:i.4 vs :>i.4

I get a syntax error - I think it is because you have used ' *:***' incorrectly (see Explicit)

Don Kelly

On 09/02/2015 12:52 AM, Linda Alvord wrote:
Using J as a calculator, the first option is most appropriate.

   >: i.4

1 2 3 4

    >:@i.4

1 2 3 4

   :>:i.4

|domain error

| | [:>:i.4

However, f displays to one style that has a domain error.  What if f
displayed the same result as g ?

    f=: 13 :'>:i.y'

    f 4

1 2 3 4

    f

[: >: i.

    g=: 13 :'>:@i.y'

    g 4

1 2 3 4

g

:@i.
Linda

----------------------------------------------------------------------
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