[Contents] · [Home] · [Mail]

SALIERI Language - inList

inList: list x object -> boolean

Call syntax:
inList(aList, anObject)

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.

> 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.