Skip to content

Instantly share code, notes, and snippets.

@l15k4
Created January 19, 2016 16:25
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 l15k4/89d4c5730fa5d0288088 to your computer and use it in GitHub Desktop.
Save l15k4/89d4c5730fa5d0288088 to your computer and use it in GitHub Desktop.
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