Ruby - Enumerable and Collection Processing
What does the Ruby method
inject do when used on an array?inject do when used on an array?injectinject method takes all elements of an array and combines them into one value using the block provided.sort, uniq, or first.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions