Skip to content

Instantly share code, notes, and snippets.

@msulima
Created July 6, 2013 15:06
Show Gist options
  • Select an option

  • Save msulima/5940161 to your computer and use it in GitHub Desktop.

Select an option

Save msulima/5940161 to your computer and use it in GitHub Desktop.
package com.futureprocessing.scala_sugar
object StringsScala {
def padStart(string: String, minLength: Int, padChar: Char) =
padChar.toString * (minLength - string.length) + string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment