R
Richard Sandoval
Hi,
How can I count all keys in an array?
For instance, I want to do this
but in ruby 1.8.6, there is only size which doesn't quite work...
How can I count all keys in an array?
For instance, I want to do this
=> 9countme = [1,2,3,4,4,4,4,4,5] => [1, 2, 3, 4, 4, 4, 4, 4, 5]
countme.count
but in ruby 1.8.6, there is only size which doesn't quite work...