💎 LearnRuby
Lessons Leaderboard
EN RU
Sign In Sign Up
Lessons Leaderboard
Language: EN RU
Sign In Sign Up
Lessons / Intermediate Enumerables
Module 2 Intermediate Ruby 3.4

Intermediate Enumerables

Ruby 3.4

Master advanced enumerable methods for powerful data processing.

Exercise (5)

â—‹
1.

Check All Elements

Use all? and any? to check conditions across a collection.

15 points enumerables all?
â—‹
2.

Group By

Group elements by a common attribute.

20 points enumerables group_by
â—‹
3.

Partition

Split a collection into two groups based on a condition.

15 points enumerables partition
â—‹
4.

Flat Map

Transform and flatten nested arrays in one step.

20 points enumerables flat_map
â—‹
5.

Each With Object

Build a result object while iterating.

20 points enumerables each_with_object

Lesson Info

Beginner
Intermediate
Exercise
5
Total Points
90
Ruby Version
3.4
Sign in to start
Back to all lessons

LearnRuby - Learn Ruby 3.4 with interactive exercises