Next: insert

delete

delete(list, position)
This function returns the result of deleting the element of list numbered by the integer position. If position is less than 1 or is greater than the length of list, then delete() throws a ~range error.

Examples:

delete([2, 3, 4], 2)
     => [2, 4]