From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- info/examples/luaintro/08-01-10.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 info/examples/luaintro/08-01-10.lua (limited to 'info/examples/luaintro/08-01-10.lua') diff --git a/info/examples/luaintro/08-01-10.lua b/info/examples/luaintro/08-01-10.lua new file mode 100644 index 0000000000..c9f2d6f3e0 --- /dev/null +++ b/info/examples/luaintro/08-01-10.lua @@ -0,0 +1,8 @@ +function f(a) return (a*a) end +x=11;g =12 +a={ [f(3)]=g; "x", "yy"; x=1, + f(x), [30]=23; 45 } +print(table.maxn(a).." Elemente") +for i,j in pairs(a) do + print(i,j) +end -- cgit v1.2.3