Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

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

./

is_sorted.pro

topis_sorted

result = is_sorted(array)

determine if an array is sorted

Return value

1-sorted, 0-not sorted

Parameters

array in required

the array to test if it is sorted.

Examples

IDL> print, is_sorted([1,2,3,3,4,5,5]) 1 IDL> print, is_sorted([1,2,3,3,2,4,5,5]) 0

Author information

History:

Fri Aug 29 12:46:51 2008, Brian Larsen written and tested

Statistics

Lines: 16
McCabe complexity:

File attributes

Modifcation date: Wed Jan 21 16:51:27 2009
Lines: 47