[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Inserting a key and value into a dictionary
- From: PA <petite.abeille@...>
- Date: Wed, 17 May 2006 13:55:26 +0200
On May 17, 2006, at 13:49, Graham Henstridge wrote:
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?
Lua 101:
local aDictionary = {}
aDictionary[ aKey ] = aValue
Programming in Lua
Part I. The Language
Chapter 2. Types and Values
2.5 - Tables
http://www.lua.org/pil/2.5.html
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/