Thanks for the help.

The previous question in the paper was:

[quote]
Is (? 3 2 $ 10) +"1 2 (i. 3 2 4) a legal expression? What would be the
answer if a plain + is used instead?
[/quote]

So I thought n in the reshape problem would be given as valid
number(s) for the rank conjunction. Would there be any n that is valid
for rank conjunction but results in an invalid operation for the
reshape?

On 4/1/06, Roger Hui <[EMAIL PROTECTED]> wrote:
>   3 4 5 $"3j4 'abc'
> |domain error
> |   3 4 5    $"3j4'abc'
>
>   3 4 5 $"'1' 'abc'
> |domain error
> |   3 4 5    $"'1''abc'
>
>   3 4 5 $"1 2 3 4 'abc'
> |length error
> |   3 4 5    $"1 2 3 4'abc'
>
>    3 4 5 $"(,.2) 'abc'
> |rank error
> |   3 4 5    $"(,.2)'abc'
>
>
>
> ----- Original Message -----
> From: "June Kim" <[EMAIL PROTECTED]>
> To: "Programming forum" <[email protected]>
> Sent: Friday, March 31, 2006 11:03 PM
> Subject: [Jprogramming] Untying the Gordian Knot: Agreement in J
>
> Hello
>
> I have been reading Martin Neitzel's paper on verb ranks from APL
> Quote Quad '95. That helped me deepen my understanding on the subject,
> though I don't feel completely secure with my understanding yet.
>
> On section 10 Excercises for Rank, there is a problem answered at the end:
>
> [quote]
> The reshape verb $ has dyadic ranks (1 _). It is no problem to
> evaluate 3 2 4 $ 'abc', but try to find some invalid rank
> specification n in 3 2 4 $"n 'abc'!
> [/quote]
>
> I couldn't come up with such n that throws an error. Any ideas?
>
>
> ----------------------------------------------------------------------
> 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