入門†
- Lua(ルア)でHello World!
sleep†
- How to add a "sleep" or "wait" to my Lua Script?
- https://stackoverflow.com/questions/17987618/how-to-add-a-sleep-or-wait-to-my-lua-script
local socket = require('socket') socket.sleep(0.2)
- https://stackoverflow.com/questions/17987618/how-to-add-a-sleep-or-wait-to-my-lua-script
coroutine.sleep(0.2)
module†
- (Nvim) Lua for Javascripters: Module Exports
local M = {} - function M.deleteDataFile(name) ... end return M
coroutine†
- luaのcoroutine
class†
Lua に class は存在しないので、それっぽいラッパー。
- Tylas11 / XivParty
- https://github.com/Tylas11/XivParty/blob/master/classes.lua
- https://github.com/Tylas11/XivParty/blob/master/player.lua
local player = classes.class()
function player:init(name, id, model)
self.name = name
配列†
.†
- 論理演算子を用いたLuaの慣用表現
- Lua > 乱数を使う