[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Inserting a key and value into a dictionary
- From: "Brian Weed" <bw@...>
- Date: Wed, 17 May 2006 07:55:54 -0400
Graham Henstridge wrote:
As a relative new comer to Lua, an unexpected difficulty I have
encountered is in inserting a key and value into an existing dictionary.
The table.insert method does the trick for an indexed value but not
for a string key. This need seems fundamental, so is there a simple
solution that I have missed?
Thank you for any help.
dict["key"] = value
Is that what you need?