Skip to content

dict_helpers.map_dict

Full path: schola.core.utils.dict_helpers.map_dict

Map a function over every leaf value while preserving nesting.

map_dict(func, input_dict)

Parameters

  • func (callable) - Applied to each leaf value V.

  • input_dict (dict) - Possibly nested mapping.