From: Paul Lewis Date: 2009-04-09T08:01:11+09:00 Subject: [ruby-core:23168] [Bug #1367] flatten(0) is not consistent with flatten(), flatten(1), etc. Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc. http://redmine.ruby-lang.org/issues/show/1367 Author: Paul Lewis Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux] > a = [1, 2] > a2 = a.flatten > a2 << :a > a2 => [1, 2, :a] > a => [1, 2] > b = [3, 4] > b2 = b.flatten 1 > b2 << :b > b2 => [3, 4, :b] > b => [3, 4] HOWEVER: > c = [5, 6] > c2 = c.flatten 0 > c2 << :c > c2 => [5, 6, :c] > c => [5, 6, :c] <-- Huh? Should be [5, 6]. ---------------------------------------- http://redmine.ruby-lang.org