diff --git a/src/Lesson9/PimpMyLibrary.scala b/src/Lesson9/PimpMyLibrary.scala new file mode 100644 index 0000000..c364ffe --- /dev/null +++ b/src/Lesson9/PimpMyLibrary.scala @@ -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)*/ +} + +