mercredi 8 avril 2015

Array of arrays element comparison Ruby

I have an array which looks like



[[1, 2, "2 mins"], [2, 3, "4 mins"], [3, 2, "2 mins"]]


How can I filter subarrays so that I get the minimum value at position 2 or in case of equality the array of equal elements?


Aucun commentaire:

Enregistrer un commentaire