diff options
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua new file mode 100644 index 00000000000..ea05390524f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua @@ -0,0 +1,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())) |