| Prev | Next | Start of Chapter | Next Chapter | Contents | Glossary | Index | Comments | (4 out of 4)

g2-get-position-of-element-in-list

Returns the index of a particular list element if it exists.

Synopsis

g2-get-position-of-element-in-list 
(elt: item-or-value, lst: class g2-list,
-> element-index: integer
Argument Description
elt
The element to find in the list. This can be an item or any value, except a sequence or structure.
lst
The target list in which to locate the element.

Return Value Description
element-index
The element index of the element.

Description

This procedure returns an integer indicating the location of the first occurrence of the element indicated by the elt argument. If the element is not a member of the list, the procedure returns -1.

| Prev | Next | Start of Chapter | Next Chapter | Contents | Glossary | Index | Comments | (4 out of 4)

Copyright © 1997 Gensym Corporation, Inc.