Scala - how to define a structural type that refers to itself?

前端 未结 2 1298
夕颜
夕颜 2020-12-09 00:06

I\'m trying to write a generic interpolate method that works on any type that has two methods, a * and a +, like this:



        
2条回答
提交回复
热议问题