mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

analysis/

mg_in.pro


Routines

top mg_in

result = mg_in(arr, el)

Returns whether an element in contained in an array.

Return value

byte

Parameters

arr in required type=array

array to check for membership of el

el in required type=any

element to check for membership in arr

Examples

Try:

IDL> arr = ['a', 'b', 'd', 'f', 'g'] 1 IDL> print, mg_in(arr, 'c') 0

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 4
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.