Pattern matching on enum

前端 未结 0 1493
青春惊慌失措
青春惊慌失措 2021-01-07 01:27

I\'m trying to make utility which can pattern-match on enums (I hate switch statements). This is what I currently have but this is not working. Any help would be appreciated

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