I’ve looked at the base classes. Am I missing a function for doing this
without iteration?
If I understand you correctly, you have a hash whose keys are 2
element arrays. And you want to know which is the biggest row (first
element) in all the keys and which one is the biggest column (second
element), right?
If so, you can do this (the max function iterates using Hash#each
internally, though):
I’ve looked at the base classes. Am I missing a function for doing this
without iteration?
If I understand you correctly, you have a hash whose keys are 2
element arrays. And you want to know which is the biggest row (first
element) in all the keys and which one is the biggest column (second
element), right?
If so, you can do this (the max function iterates using Hash#each
internally, though):