Lua implementation of a switch statement. Supports an optional default case.
local switch = require 'switch' switch('lua', { goodbye = function(value) ... end, hello = function(value) ... end, [switch.default] = function(value) ... end })
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |