Task: Flatten Nested Hash to Single-Level Hash in Ruby
Task: Flatten Nested Hash to Single-Level Hash in Ruby: a task in Terminal-Lego-15k (Harbor dataset). Create a Ruby script that "flattens" a nested hash with varying levels of depth into a single-level hash. The nested keys should be merged into a single key string, joined by dots ( . ).
The task
Create a Ruby script that "flattens" a nested hash with varying levels of depth into a single-level hash. The nested keys should be merged into a single key string, joined by dots (`.`).
Part of PrimeIntellect/Terminal-Lego-15k.