Skip to content

Instantly share code, notes, and snippets.

@juanrh
Created November 16, 2013 19:02
Show Gist options
  • Save juanrh/7503923 to your computer and use it in GitHub Desktop.
Save juanrh/7503923 to your computer and use it in GitHub Desktop.
def map_f(_title, text):
for word in text.split(' '):
yield((word, 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment