Skip to content

CoderrOne/Switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Switch

Lua duplication of switch statements

How to use

local Switch = require(Path.To.Module)

Switch({"Baz", "Bar"}, {
	["Bar"] = function()
		return "Bar"
	end,
	["Baz"] = function()
		return "Baz"
	end,
	["Default"] = function()
		return "Default"
	end
})

Switch("Bar" , {
	["Bar"] = function()
		return "Foo"
	end
})

About

Lua duplication of switch statements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages