[Contents] · [Home] · [Mail]

SALIERI Language - inList

Type:
inList: list x object -> boolean

Call syntax:
inList(aList, anObject)

Description:
Returns TRUE, if anObject is an element of list aList, FALSE otherwise. This function sequentially tests the elements of aList w.r.t. equality to anObject; if aList contains elements which are lists, these are not recursively scanned for anObject.

Example:
> inList(LIST(1,2,3),1)
Result= TRUE
> inList(LIST(LIST(1,2,3),4),1)
Result= FALSE
> a:=1; inList(LIST(1,2,3),a)
Result= TRUE

See also: LIST, LISTINIT, consList. putList, getList,


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.