daily pastebin goal
66%
SHARE
TWEET

the table is a hash

hevohevo Mar 28th, 2016 (edited) 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local isonoke = {boy="Katsuo", girl="Wakame", baby="Ikura"}  -- 連想配列の作成
  2. print(isonoke["boy"], "doesn't get old at all.")    -- "boy"をキーに値"Katsuo"を呼び出す
  3. isonoke["boy"] = "Tara"    -- -- "boy"をキーに値を書き換え
  4. print(isonoke["boy"], "is an eternal boy!!")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top