Ruby | Array delete_at() operation
Array#delete_at() : delete_at() is a Array class method which deletes the arrays elements at the mentioned index.
Syntax: Array.delete_at() Parameter: index - value at specific index value to delete Return: deleted element, nil - if the index value is out of range
Code #1 : Example for delete_at() method
delete : 6 delete : 1 delete :
Code #2 : Example for delete_at() method
delete : nil delete : delete : cat