adding splats to function definitions

This commit is contained in:
Jeremy Ashkenas
2009-12-31 17:50:12 -05:00
parent c187f2160f
commit adca8183de
6 changed files with 1133 additions and 1032 deletions

View File

@@ -0,0 +1,6 @@
func: first, second, *rest =>
rest.join(' ')
result: func(1, 2, 3, 4, 5)
print(result is "3 4 5")