added lesson 9

This commit is contained in:
Louis Heredero 2025-05-06 14:31:51 +02:00
parent bed771a04e
commit c13f9851e3
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -0,0 +1,15 @@
package Lesson9
import scala.language.{implicitConversions, postfixOps}
object PimpMyLibrary extends App{
/*class PimpedString(s: String) {
def increment: String = new String(s.toCharArray.map(_ + 1))
}
implicit def str2Pimped(s: String): PimpedString = new PimpedString(s)
println("Hal" increment)*/
}