What is the difference between passing a block as an argument and passing a proc as a argument?

前端 未结 0 1382
一个人的身影
一个人的身影 2020-12-11 08:30

We had to write a function that should accept an array, a proc, and a block as args. It should return the element from the array that has the largest result when passed into

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