Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Operation between two lists. op is one of the operators below :

+ Addition

- Subtraction

* Multiplication

/ Division

^ Power

 



The boolean operators are :

> Larger Than

< Smaller Than

>= Larger or Equal

<= Smaller or Equal

= Equal

<> Not Equal



list ( list op number )
list ( number op list )

...

# copies elements 1, 5, 9, 13, 17 of x into y
Y = X[1,20,4]

 

list list[vector]

Extract a selection of elements from a list. The vector supplied as the argument provides the set of indices to be used. For example:   

# copies elements 2, 1, 3 from x to y
i = |2,1,3|
y = x[i]
 


number ( any in list )
number ( any not in list )

...