易百教程

47、从 Ruby 中的数组中删除数据项有多少种方法?

Ruby 数组元素可以通过以下几种方式删除:

  • pop
  • shift
  • delete
  • uniq