analysis/
mg_in.pro
Routines
top mg_in
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 |
Contact me if you have enhancement requests or bug fixes.