From: WATANABE Hirofumi Date: 2003-01-24T13:42:34+09:00 Subject: Re: Silly idea: map-like method produces array "Hal E. Fulton" writes: > OK, I was thinking today about "stacked" > assignment: > > x, y, z = 0 <...> > a, b, c, d, e = 5 * [] > s1, s2, s3 = 3 * "hello" % irb >> x, y, z = [0] * 3 => [0, 0, 0] >> a, b, c, d, e = [[]] * 5 => [[], [], [], [], []] >> s1, s2, s3 = ["hello"] * 3 => ["hello", "hello", "hello"] -- eban