Member Function Examples

Details

Action

A MathScript Function that tests to see if an object is in a list.

make l1 list(3,1,4,1,5,9)

member
(1,l1)

returns the list (1,4,1,5,9)

not(member(7,l1)) returns TRUE

or

empty(member(7,l1)) returns TRUE