class List
Base class:
Object Inherited classes: Empty
Description: a list of mama objects of any type
- Fields:
- Empty
- Methods:
- add(): Adds the given object at the end of the list
- average(): Returns the average value of the list elements
- count(): Returns the number of elements in the list which are equals to the given object
- first(): Returns the first element in the list
- head(): Returns the first element in the list
- last(): Returns the last element in the list
- length(): Returns the number of elements in the list
- pop(): Pops and returns the element at the end of the list
- push(): Pushes the given element at the end of the list
- remove_first(): Removes and returns the element at the beginning of the list
- remove_index(): Removes from the list the element in the given index
- reverse(): Reverses the order of the list elements
- null(): Returns index of the given object in the list, and -1 if the object not found
- null(): Inserts the given object into the list
- null(): Removes the given object from the list
- sort(): Sorts the list
- stddev(): Returns the standard deviation of the list
- sum(): Returns the sum of the list elements
- Events:
- Empty
Back to Mama reference