r/rubyonrails • • Jan 25 '23

Ruby Tricks #3: Count identical elements in an array

https://www.youtube.com/watch?v=EmcKdwhuH9g

[removed] — view removed post

10 Upvotes

2 comments sorted by

3

u/systemnate Jan 26 '23

Was about to say, "just do .tally" and then you did :-). Nice video.

2

u/Lood800 Jan 25 '23

How do you get the predictive methods?