Created
June 6, 2022 07:28
-
-
Save pkutaj/f4341fe7e174313fd3a5236961dfe130 to your computer and use it in GitHub Desktop.
50.04-FP-Combining-Map-and-Reduce_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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