ruby convert array into function arguments

后端 未结 2 1141
灰色年华
灰色年华 2020-12-23 13:23

Say I have an array. I wish to pass the array to a function. The function, however, expects two arguments. Is there a way to on the fly convert the array into 2 arguments? F

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