From: Robert Oschler Date: 2004-07-20T09:27:06+09:00 Subject: Re: Ruby equivalent of C# StringCollection container? Richard, Ok thanks. I was concerned there might be other aspects of the C# StringCollection (such as insertion times, indexed or unindexed lookups, etc.) that I might not be aware of, which would affect the correct container choice in Ruby. I'm not an experienced C# coder. My background is C++ and Object Pascal. Thanks, -- Robert "Richard Kilmer" wrote in message news:BD20B331.E890%rich@infoether.com... > Just use an Array: > > a = ['rich', 'dave', 'tom'] > a << 'james' > > puts a.join(', ') #=> rich, dave, tom, james > > see: http://www.ruby-doc.org/docs/rdoc/1.9/classes/Array.html > > Since Ruby's variables are not statically typed, you don't need to have > containers for specific classes as you need to do in C#. > > -rich > >