Still getting caught by APL?

Everything not about current APL2000 products.

Still getting caught by APL?

Postby Ajay Askoolum » August 28th, 2018, 3:24 pm

I guess most APL developers get caught by scalars having rank 0 and/or rank 1, occasionally.

I needed to verify that an argument, a nested vector, to a function contained 1. arrays of rank 2, had the same number of rows and 3. were simple arrays i.e. had depth 1.

I spent ages figuring out why
Code: Select all
⍴⍴¨RefData
was returning (seemed like) the number of elements in the argument and not the rank of each element. Somehow, I had always assumed that ⍴⍴ was a composite symbol like ∘. What I needed was, of course:
⍴¨⍴¨RefData
. Embarrassing!
Ajay Askoolum
 
Posts: 884
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 1 guest

cron