Implicit Classes, Scala.
it is not meant to be used as a value type. We can treat it as a normal class. We can use this implicit class like this: scala> "Hello ".repeat(3) res1: String = Hello Hello Hello So, in this example, the implicit class that extends AnyVal is more optimized for performance as a value type, while