Sobes.tech
Junior — Senior

Recursive expansion of nested Map into a homogeneous dictionary

livecode

Task condition

Create a function that takes a nested structure of type Map<String, Object> and returns a flat Map, where:

  1. Inner Maps are recursively expanded;
  2. Keys are formed by concatenating parent and child keys with a specified separator;
  3. Values that are not Maps are copied unchanged.