Lua
up:: Programming ⚐
- Just enough Lua to be productive in Hammerspoon #1
- Just enough Lua to be productive in Hammerspoon #2
- Learn Lua in one hour
- Learn Lua in Y minutes
- Code Blue Tutorials
Snippets
Variables
Tables
Loops
Functions
Functions don’t do anything unless you call on them.
function
anyName
- Name of the function(a , b)
- Parameters (can be empty)sum = a + b
return sum
- function ignores everything after `return“test = anyName(10 , 20)
- calling on the function with variables10 , 20
print(test)
- Printing the output of calling on the function