4 ms·
Yeah, I know about SAM support. But that will only happen if the type is known, and type-annotating every short {} is a pretty big price. Or can I do something
by lmm 12y ago
Yeah, I know about SAM support. But that will only happen if the type is known, and type-annotating every short {} is a pretty big price. Or can I do something like:
myKleisli >=> {a => Option(a.toString)}
and have SAM figure out that that's another Kleisli?
- eeperson 12y agoYeah, I think that would work. edit - I think the need for explicit types for each SAM was fixed by https://issues.scala-lang.org/browse/SI-8310 https://issues.scala-lang.org/browse/SI-8310