Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

switch.lua

Lua implementation of a switch statement. Supports an optional default case.

Example

localswitch=require'switch'switch('lua', {
goodbye=function(value)
...end,
hello=function(value)
...end,
[switch.default] =function(value)
...end
})

About

Lua implementation of a switch statement

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages