Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#331·boltons

Convert list of dict items to list of string items

Author: martinm82Created Mar 24, 2023Updated Mar 24, 2023

Hi, first of all thanks a lot for this create library. It saved me a lot of time.

I have the following problem where I need to remap a list of dict into a list of strings.

apps:
  - slug: abc
  - slug: def

should be converted to

apps:
  - abc
  - def

In general this an easy task if the dict is flat but in my case I have a nested dict and never can know when the list apps is located.

I tried several things with remap and enter but cannot get it working.

Any ideas would be appreciated.

Source: mahmoud/boltons

View original on GitHubView discussion on GitHub