How to declare generic method with parameter of protocol array or protocol?

前端 未结 0 1047
醉话见心
醉话见心 2021-01-03 05:46

The result I want is: The generic type can be an array or a separate protocol, The return value is also judged based on the generic type

This code is not compiled:

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