parametrize_from_file icon indicating copy to clipboard operation
parametrize_from_file copied to clipboard

Add `map()` schema function

Open kalekundert opened this issue 3 years ago • 0 comments
trafficstars

It'd be nice to have some ability to recurse into nested data structures. I think I can already descend into dicts using cast(), but I need another function for containers. Some thoughts:

  • I should make an effort to maintain the container type.
  • map() might be a good name.
  • I might also rename cast() to apply() and defaults() to fill()...
  • I could do this using cast(), maybe. Non-keyword argument applied to all items in container (or values if container is dict). But the keyword arguments become limiting. Better to make a new function.

kalekundert avatar Jun 14 '22 18:06 kalekundert