[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02651] Append alias for Array.append?

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-05-09 08:34:54 UTC
List: ruby-talk #2651
Some reason there's no Array.append? Or, let me rephrase, should there exist
append as an alias to push.

Note the documentation for Array:


self << obj 

          *Append* a new item with value obj to the end of the array.

push(obj...) 

          *Appends* obj to the last of the array.


I've written now at least couple of times array.append(foo) and then changed
the class by myself. After that it came to me - maybe it should be there in
the first place :).

	- Aleksi

In This Thread

Prev Next