Kotlin: How to check if all values in the sequence has same value

后端 未结 0 1280
心在旅途
心在旅途 2020-12-08 02:40

I\'m trying to write a helper method in Kotlin which would check if all the values in a sequence has the same value.

Thanks to the question here

Java Style cod

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