Skip to content

Instantly share code, notes, and snippets.

@cessor
Created June 5, 2018 08:41
Show Gist options
  • Select an option

  • Save cessor/6b2c2dae31f75aaa5f0ada99e8a64146 to your computer and use it in GitHub Desktop.

Select an option

Save cessor/6b2c2dae31f75aaa5f0ada99e8a64146 to your computer and use it in GitHub Desktop.
Flatten nested list of comma separated strings
# Simple Flatten Array
functools.reduce(lambda a,b: a + b.split(','), list_, [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment