Skip to content

Instantly share code, notes, and snippets.

@bthuillier
Created February 6, 2013 15:37
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 bthuillier/4723343 to your computer and use it in GitHub Desktop.
Save bthuillier/4723343 to your computer and use it in GitHub Desktop.
parallelization
val words = List[String]("scala", "php", "java", "ruby")
//récupère une version parallelisé de la liste
words.par.filter(word => word.length > 3).foreach(println(_))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment