ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: contents

contents(S) returns a list of the contents of the set S as the number of elements of each possible data type.

Example: contents({1, i, ❨1, 2❩, "test"})
         1 real number(s)
         1 complex number(s)
         1 real vector(s)
         1 string(s)

contents(s) returns a list of the contents of the set named s, a string representing the valid identifier of a set variable.

Remark: Calling contents with a reference to the set, i.e. using a string as argument, is generally much faster than passing the entire set (by value, copying the set data) to the function.