The Map object store key-value pairs and remembers the original insertion order of the keys
The set object store unique value of any types, It’s maybe primitive or object types
๐ ROR ๐ :๐๏ธ Garbage collection ๐ฎ
Garbage collection (GC) is a crucial aspect of memory management in programming languages, including Ruby on Rails. The primary purpose of garbage collection in Rails is to automatically reclaim memory that is no longer in use or referenced by the program. Here are some key reasons in details, why garbage collection is essential in Rails: