bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] String element of general array


From: Blake McBride
Subject: Re: [Bug-apl] String element of general array
Date: Fri, 9 May 2014 07:07:36 -0500

Greetings,


On Fri, May 9, 2014 at 12:10 AM, Daniel H. Leidisch <address@hidden> wrote:
Hello!

Blake McBride <address@hidden>
writes:

> x←'abcd'  'efg'  'hijkl'
>
> Now, if I have:
>
> y←'hijkl'
>
> z←'hhh'
>
> How can I tell if y is in x?  How can I tell if z is in x?

Or for both at once:

      (y z)∊x
1 0

I like this best, except:

u←'abcd'
g←'ghjk'  'dsaw'

g∊x   works. but I have to do:

(⊂u)∊x

but:

u∊x doesn't work.

the left side is being past as an argument to a function.  I don't know if it is going to be a string array or a general array of strings.  I need a way to work in either case.  (Sorry for the stupid questions.  I'm just not straight with APL2 yest.)

Thanks.

Blake



 


Regards,

Daniel




reply via email to

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