From: Greg Brown Date: 2005-05-27T02:10:19+09:00 Subject: Re: Tiling Turmoil (#33) >1) Style in general. What have I done that is 'unrubyish'? Are there >more elegant ways of doing things? > >2) If a want a 'mathematical' vector, that treats + as addition and not >as concatenation, what can I do? I added the method 'add!' to class >Array for this, but it would be nice to know if there is a standard >facility for this. > >3) I gave my Board class a copy method. Is there a better way to copy >an array than concatenating the source to an empty ([]) target? I found >no 'copy' method in the docs. I have some ideas about the first 2 but I'll leave it to the experts to give you the 'good' answers. But for 3, some_copy = some_array.dup should do the trick.