Greetings,
On Fri, May 9, 2014 at 12:10 AM, Daniel H. Leidisch <li...@leidisch.net>wrote: > Hello! > > Blake McBride <blake1...@gmail.com> > 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 > > >