Ruby | Hash fetch_values() function
Hash#fetch_values() is a Hash class method which returns array containing the values associated with the given keys. With no other arguments, it will raise a KeyError exception. Syntax: Hash.fetch_values() Parameter: Hash values Return: array containing the values associated with the given keys Exam