comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Succinct way of testing array membership
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Succinct way of testing array membership [message #81299 is a reply to message #81205] Thu, 30 August 2012 13:57 Go to previous messageGo to previous message
godber is currently offline  godber
Messages: 4
Registered: January 2012
Junior Member
On Thursday, August 30, 2012 9:57:02 AM UTC-7, Coyote wrote:
> Godber writes:
>
>
>
>> Is there a more succinct way of testing array membership than using where and n_elements on the indexes? Something like array_contains(a, 'pancakes')?
>
>
>
> It might take you 30 seconds to write such a thing!
>
>
>
> Cheers,
>
>
>
> David

Yeah David it does, but look at all the nice trys by people below. In fact some of them were very informative. I like Mike's suggestion, and it points out /null to me and wayne is kind enough to point out a quicker solution. Therefor I declare the question a success.

I mean, it still is a little surprising to me that there isn't an inbuilt way to test list or array membership.

Thanks for the alternatives guys.

Austin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: A simple DLM question
Next Topic: plotting symbols on map using direct graphics 8.2

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 06:58:39 PDT 2025

Total time taken to generate the page: 1.11857 seconds