mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 19:00:06 +00:00
Add Lua example to vendor\lua as well as basic tests.
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
-- defines a factorial function
|
||||
function fact (n)
|
||||
if n == 0 then
|
||||
return 1
|
||||
else
|
||||
return n * fact(n-1)
|
||||
end
|
||||
end
|
||||
|
||||
return fact(10)
|
||||
Reference in New Issue
Block a user