Scala: Generic isInstanceOf based on sealed hierarchy

前端 未结 0 468
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-21 04:32

I\'m trying to generalize some sort of isIntanceOf based on a sealed hierarchy, but haven\'t been successful. The example below demonstrates what I want to achieve:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题