BJörn Lindqvist schrieb:
On 3/28/06, Sebastian Werner <[EMAIL PROTECTED]> wrote:
BJörn Lindqvist schrieb:
"append" is just an addition to the array object of javascript made by
qooxdoo. Could you be so nice and tell us another name?
push? :)
Remember that "push" is already used. Push add seperate items and
doesn't merge the full content of another array.

I see. How about "extend" then? The reason why "append" might need a
renaming is because in Python (and other languages) "append" mean add
one item. In python, "extend" means append all the items of the array
in the argument to the array itself.

[1, 2, 3].append(['a', 'b']);

Does the array become?

[1, 2, 3, ['a', 'b']]

or

[1, 2, 3, 'a', 'b']

This, the second one is the result.

Sebastian


?

--
mvh Björn


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to