First Function Example

Details

Action

A MathScript Function that returns the first element of a list.

make list1 list(x,y,z)

print first(list1)

displays x, the first object in the list (x,y,z)