Sayed's Blog

drawlang > docs > users > library > lists

Lists

  • add(value) - Adds value to end of list.

  • addTo(index, value) - Inserts specified element in specified position in list.

  • clear() - Empties list.

  • get(index) - Returns element at the specified index in list.

  • remove(index) - Removes element at the specified postion in list and returns it.

  • size() - Returns size of list.

  • toArray() - Returns an array containing all the elements in list.

    © 2023