summaryrefslogtreecommitdiff
path: root/info/examples/luaintro/08-01-11.lua
blob: ea05390524f2430a9995d41bc06b2f5f59328c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f(a, b) return a,b end
function g(a, b, ...) return a,... end
function r() return 1,2,3 end
print(f(3))
print(f(3, 4))
print(f(3, 4, 5))
print(f(r(), 10))
print(f(r()))
print(g(3))
print(g(3, 4))
print(g(3, 4, 5, 8))
print(g(5, r()))