bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Element types in mixed arrays


From: Blake McBride
Subject: [Bug-apl] Element types in mixed arrays
Date: Fri, 23 May 2014 10:54:41 -0500

Greetings, and sorry about the basic question.

If I have a mixed array, i.e.:

m←5 5⍴⍳25
m[2;2]←'X'

What I am looking for is the correct way to tell which elements are character and which are numeric.

I know I can do:

m∊⎕AV

That gives me exactly what I am looking for.  It just seems like a lot of work for each element of m to get compared with each element of ⎕AV.  DialogAPL defines monadic ∊ to give this, but IBM APL2 uses it for something else.  I just thought there might be an efficient idiom for this in IBM APL2.

Thanks.

Blake


reply via email to

[Prev in Thread] Current Thread [Next in Thread]