Skip to content

Instantly share code, notes, and snippets.

@manjuraj
Created January 21, 2014 22:18
Show Gist options
  • Save manjuraj/8549617 to your computer and use it in GitHub Desktop.
Save manjuraj/8549617 to your computer and use it in GitHub Desktop.
format strings
// Scala adds a "format" method to Strings (via StringOps),
// which takes Any* instead of Object*
"hi: %d".format(5) // same as `String.format("hi: %d", 5)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment