Skip to content

Use more pythonic style for Counter() with a generator expression#185

Merged
nreinicke merged 3 commits intoNatLabRockies:mainfrom
machallboyd:feature/generator-pattern
Apr 25, 2023
Merged

Use more pythonic style for Counter() with a generator expression#185
nreinicke merged 3 commits intoNatLabRockies:mainfrom
machallboyd:feature/generator-pattern

Conversation

@machallboyd
Copy link
Copy Markdown
Contributor

A code style suggestion for feeding a sequence of strings to Counter() that doesn't involve using map() or lambdas.

Copy link
Copy Markdown
Collaborator

@nreinicke nreinicke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me and is definitely more pythonic

@nreinicke nreinicke merged commit 1bddfd8 into NatLabRockies:main Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants