We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73139f8 commit 14c132eCopy full SHA for 14c132e
test/lang/index
@@ -8,6 +8,7 @@ length.lua
8
modulo.lua
9
concat.lua
10
self.lua
11
+table.lua
12
upvalue
13
coroutine.lua
14
tail_recursion.lua
test/lang/table.lua
@@ -0,0 +1,32 @@
1
+do --- tables as keys in tables
2
+ local fwd, bck = {}, {}
3
+ for i = 1,100 do
4
+ local v = {}
5
+ fwd[i] = v
6
+ bck[v] = i
7
+ end
+ local v = fwd[i]
+ assert(type(v) == "table")
+ assert(bck[v] == i)
+end
+
15
+do --- some tables as keys in tables
16
17
18
19
20
+ if i > 90 then
21
22
23
24
+ local n = 0
25
+ for i = 1, 100 do
26
27
+ if bck[v] then
28
+ n = n + 1
29
30
31
+ assert(n == 10)
32
0 commit comments