I have a hash which holds a series of arrays with values in them:
av_hash = {9 => [2,4,6], 10 => [5,7], 11 => [2,3,7]} how can I check for the presence of a certain number in the array value of a certain hash key?
So if I wanted for example to find out if key 11 contains the number 2 in its array, what's the best way to go about this?