Hello,
I was wondering if there was an easy way to count how many indexes in an array of hashes contain a key equal to a specific value.
a for loop and count mechanism seems clunky, so thought you experts could come up with a one liner ;-)
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I was wondering if there was an easy way to count how many indexes in an array of hashes contain a key equal to a specific value.
a for loop and count mechanism seems clunky, so thought you experts could come up with a one liner ;-)
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.