Ruby - Enumerable and Collection Processing
In Ruby, what is the primary purpose of using the
each method on an array?each method on an array?each methodeach method is used to iterate over each element in a collection.each runs code on each element [OK]each with sorting or filtering methodseach modifies the array itselfeach returns a new array15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions