Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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