How to join string in kotlin and add postfix only if more than 1 item

前端 未结 0 1680
[愿得一人]
[愿得一人] 2020-12-15 12:36

I have a list of some data class which I want to join into a string in kotlin EFFICIENTLY (least amount of code).

the data class is:

data class Animal(         


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