How to find a min/max with Ruby

后端 未结 6 2203
长情又很酷
长情又很酷 2020-12-04 05:29

I want to use min(5,10), or Math.max(4,7). Are there functions to this effect in Ruby?

6条回答
提交回复
热议问题