Created
March 31, 2016 14:59
-
-
Save lnds/9c155177f7fa2702dd99d761edb83efc to your computer and use it in GitHub Desktop.
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
def parFetch(cities:List[String]) : Unit = { | |
val reports = (cities.par map (city => apiCall(city))).toList | |
printReports(reports) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment