Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def generateTimeField(format: SimpleDateFormat)(i: Int) = do-stuff-with-thread-unsafe-format
val curriedF = generateTimeField(new SimpleDateFormat("foo"))_
List(1,2,3,4).par.map(curriedF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment