You have an extra colon in the first position.

Linda

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Björn
Helgason
Sent: Monday, February 9, 2015 10:11 AM
To: Programming forum
Subject: Re: [Jprogramming] Source of frustration

I copied your line with domain error and got syntax error

    :>:i.4
|syntax error
|        :>:i.4
     >:i.4
1 2 3 4

On 9 Feb 2015 08:53, "Linda Alvord" <[email protected]> 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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to