参见英文答案 >
Methods in Ruby: objects or not?5个
> What are recursive arrays good for?2
> What are recursive arrays good for?2
另外一天晚上,我最终不得不在Ruby中做相当的事情:
a = *1..5 # => [1,2,3,4,5] a << a a # => [1,5,[...]] a.last # => [1,[...]]
什么是[…],我该怎么办?