mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
Huge thanks to JohnVeness, AThousandShips, and Meorge for their great help rewording my broken English.
1.3 KiB
1.3 KiB
type, section, subsection, rank, importance, anchor, title, text, contributors, read_more
| type | section | subsection | rank | importance | anchor | title | text | contributors | read_more | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| entry | scripting | gdscript | 0 | 4 | introducing-variadic-arguments | Introducing variadic arguments | GDScript functions can now accept an arbitrary number of parameters! ```manual-highlight @[extends](keyword) @[Node](enginetype) @[func](keyword) @[sum](function)@[(](symbol)first_number@[:](symbol) @[float](basetype)@[,](symbol) @[...](symbol)numbers@[:](symbol) @[Array](basetype)@[) ->](symbol) @[float](basetype)@[:](symbol) @[var](keyword) total @[:=](symbol) first_number @[for](keyword) number @[in](symbol) numbers@[:](symbol) total @[+=](symbol) number @[return](keyword) total @[func](keyword) @[_ready](function)@[() ->](symbol) @[void](basetype)@[:](symbol) @[sum](function)@[(](symbol)@[1](basetype)@[)](symbol) @[# 1.0](comment) @[sum](function)@[(](symbol)@[1](basetype)@[,](symbol) @[2](basetype)@[,](symbol) @[3](basetype)@[)](symbol) @[# 6.0](comment) @[sum](function)@[(](symbol)@[1](basetype)@[,](symbol) @[2](basetype)@[,](symbol) @[3](basetype)@[,](symbol) @[4](basetype)@[,](symbol) @[5](basetype)@[)](symbol) @[# 15.0](comment) ``` |
|
https://github.com/godotengine/godot/pull/82808 |