'Scala Single Abstract Method & Intellij
I'm just getting use to Scala Single Abstract Method which I did not know well, until I went through several blogs on Type Class.
I am able after few minutes to figure out what's going on when I see it. I wonder if there is a way in Intellij to Highlight SAM, so it is easy to recognize.
I mean this kind of things made me think twice
@inline final def instance[A](f: JsValue => Either[String, A]): JsDecoder[A] = f(_)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|