Module list

List

Functions

List.new () Creates a new List.
List:clear () Clears the List completely.
List:add (obj) Adds an object to the List.
List:remove (obj) Removes an object from the List.
List:get (index) Gets an object by numerical index.
List:has (obj) Gets if the List has the object.


Functions

List.new ()
Creates a new List.

Returns:

    A new list
List:clear ()
Clears the List completely.

Returns:

    self
List:add (obj)
Adds an object to the List.

Parameters:

  • obj The object to add

Returns:

    self
List:remove (obj)
Removes an object from the List.

Parameters:

  • obj The object to remove

Returns:

    self
List:get (index)
Gets an object by numerical index.

Parameters:

  • index The index to look at

Returns:

    The object at the index
List:has (obj)
Gets if the List has the object.

Parameters:

  • obj The object to search for true if the list has the object, false otherwise
generated by LDoc 1.4.6 Last updated 2018-09-25 18:42:43