Skip to content

Instantly share code, notes, and snippets.

@cataclyst78
Last active June 19, 2017 21:02
Show Gist options
  • Save cataclyst78/5364d4e863e8c4a9931f68294d81531e to your computer and use it in GitHub Desktop.
Save cataclyst78/5364d4e863e8c4a9931f68294d81531e to your computer and use it in GitHub Desktop.
-- defines a factorial function
function fact (n)
if (n == 0) then
return 1
else
return n*fact(n - 1)
end
end
-- return fact(5)
return string.format("Wait, so I can have this do whatever I want? Whatever at all??? %s", 20 * 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment