awhere

Source: utils/misc/awhere.pro

 awhere
        Returns where the elements of the first array are found in the
        second.

 Usage:
        locs = awhere(list, lookup)

 Arguments:
        list    any     The array whose members are to be located.
        lookup  any     The table in which they are to be found.

 Keywords:
        not_found       long    output  A named variable to contain
                                        the number of elements of the
                                        first list not found in the
                                        second.
 Notes:
        Elements not found are returned as -1, if there are duplicates
        in the lookup table the first is returned.

 History:
        Original: 29/6/00; SJT
        Force d to be at least 1 (5.4 returns 0 for a scalar):
        23/2/01; SJT
        Added not_found key: 17/4/02; SJT



James Tappin 2005-02-04