Skip to content

Instantly share code, notes, and snippets.

@BURG3R5
Created June 6, 2022 12:25
Show Gist options
  • Save BURG3R5/5ff8003b608cd800915d959d147ebe13 to your computer and use it in GitHub Desktop.
Save BURG3R5/5ff8003b608cd800915d959d147ebe13 to your computer and use it in GitHub Desktop.
# IN: documents
keywords: set[str] = set()
for document in documents.values():
keywords = keywords.union(set(document))
# OUT: keywords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment