fun add(e: float): boolean
Appends the specified element to the end of this list.
e
- float: element to be appended to this list
Return
boolean: true
fun add(index: int, element: float): void
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
index
- int: index at which the specified element is to be inserted
element
- float: element to be inserted