From c13f9851e3d3ed57354ce35f303417d78e003aba Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Tue, 6 May 2025 14:31:51 +0200 Subject: [PATCH] added lesson 9 --- src/Lesson9/PimpMyLibrary.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Lesson9/PimpMyLibrary.scala 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)*/ +} + +