laiwuyaoguan 发表于 2013-2-5 02:17:21

ruby数组倒叙

Returns a new array containing self‘s elements in reverse order.

   [ "a", "b", "c" ].reverse   #=> ["c", "b", "a"]
   [ 1 ].reverse               #=>
页: [1]
查看完整版本: ruby数组倒叙