Skip to content

Instantly share code, notes, and snippets.

@Drvanon
Created July 20, 2021 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drvanon/c103f260117f0cda9b1786d5fc920fad to your computer and use it in GitHub Desktop.
Save Drvanon/c103f260117f0cda9b1786d5fc920fad to your computer and use it in GitHub Desktop.
# Data source
gen = ({'a': 3, 'b': 4} for i in range(300))
a = map(lambda d: d['a'], gen)
b = map(lambda d: d['b'], gen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment