Ruby | Hash delete() function
delete() is an Hash class method which deletes the key-value pair and returns the value from hash whose key is equal to key.
Parameter: Hash array
Return: value from hash whose key is equal to deleted key.
delete a : 100 delete b : 100
delete c : 200 delete c : xy not found