Hi,

How do I merge two lua tables? I believe that table.merge or table.merged 
should do the trick, but I cannot figure out how to use them. 

``` 
local t1 = { 1, 2 }
local t2 = { 8, 9 }

local m1 = {}
table.merge(m1,t1, t2)
table.print(m1)

local m2 = table.merged(t1, t2)
table.print(m2)
```

Processing the file with context filename shows that both m1 and m2 are {8, 9}. 
What am I missing. 

Thanks,
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to