add method to string class scala code example
Example: add method to string class scala
object CoolString {
implicit class CoolString(string: String) {
def newMethod() = ???
}
}
object CoolString {
implicit class CoolString(string: String) {
def newMethod() = ???
}
}