Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Release 2.5 comprised the following changes to Release 2.4:
func one(a=1, b=2, c=3, d=4) [a, b, c, d] one(5,,4)This invocation invokes one with the default values for the second and fourth arguments. (See § 6.4.2, page .)
The ellipsis can also have default values:
func two(...=0) [...] two(5,,6)Here, the second argument to two gets the default value. (See § 6.4.4, page for more information.) This example also shows how the ellipsis are now used to construct an array, when all of the arguments are numeric types. (See § 6.4.4, page for more information.)
Finally, there is a new missing() function which returns a boolean vector indicating which parameters received default values. (See § 6.5, page .)