Hi,

actually the example below works if you set the parentheses differently:

      {'foo', ⍵}⍤1 (4 5⍴⍳10)
foo 1 2 3 4  5
foo 6 7 8 9 10
foo 1 2 3 4  5
foo 6 7 8 9 10


The reason why your example below does not work is that your parentheses force {'foo',⍵}⍤1 to be computed first (throwing the rank error because of argument 1
which is expected to be a vector).

/// Jürgen


On 03/04/2014 07:52 PM, Daniel H. Leidisch wrote:
Hello!

Juergen Sauermann
<[email protected]> writes:

What you probably intended to do is:

*      {'foo',⍵}⍤1 (4 5⍴⍳10)*
foo 1 2 3 4  5
foo 6 7 8 9 10
foo 1 2 3 4  5
foo 6 7 8 9 10
Shouldn't this work, too?

       ({'foo',⍵}⍤1) 4 5⍴⍳10
RANK ERROR
       (λ1⍤1)4 5⍴⍳10
        ^        ^

Works in NARS2000.


Regards,

Daniel





Reply via email to