[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How can I deep-compare 2 Lua tables, which may or may not have tables as keys?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 22 Sep 2014 12:58:35 -0300
> similar problem: I needed to access a table tt using the contents of a
> table tk as key, so I serialized tk with its keys ordered and used the
> resulting string as key for tt.
Using a message digest for the table contents (ordered keys + values)
would probably work just fine. I can't see how to avoid ordering the
keys, though.