Skip to content

Instantly share code, notes, and snippets.

@pkutaj
Created June 6, 2022 07:28
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 pkutaj/f4341fe7e174313fd3a5236961dfe130 to your computer and use it in GitHub Desktop.
Save pkutaj/f4341fe7e174313fd3a5236961dfe130 to your computer and use it in GitHub Desktop.
50.04-FP-Combining-Map-and-Reduce_2.py
documents = [
"Each in the cell of himself is almost convinced of his freedom",
"You know I like that violence that you get around here, that kind of ready steady violence",
"Yes that is right punk is dead it is another cheap product for the consumers head",
"To be or not to be that is the question"
]
counts = map(count_words,documents)
# OUTPUT IS LAZY OBJECT
# <map object at 0x01F2F610>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment