Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -0,0 +1,14 @@
|
|||
local proc f1(x) print(x); return x end
|
||||
|
||||
# t is a constant table, its contents can change but t itself cannot be assigned to
|
||||
local constant t := [ "foo" ~ "bar"
|
||||
, "baz" ~ 6
|
||||
, fortytwo ~ 7
|
||||
, 42 ~ [ 1, 2, 3 ]
|
||||
, "zz" ~ f1
|
||||
];
|
||||
t[ f1 ] := true; # keys that aren't strings or numbers need to be added via assignments
|
||||
|
||||
for key, val in pairs( t ) do
|
||||
printf( "%24s (%9s) -> (%9s) %-24s \n", key, type( key ), type( val ), val )
|
||||
od
|
||||
Loading…
Add table
Add a link
Reference in a new issue