mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Added definition to function 'twice()'
This commit is contained in:
parent
bc065ce2bf
commit
a13e120fd5
@ -119,6 +119,9 @@ print("********************************************")
|
|||||||
|
|
||||||
print("**********Functions*****************")
|
print("**********Functions*****************")
|
||||||
print("function twice(x) return 2*x end")
|
print("function twice(x) return 2*x end")
|
||||||
|
function twice(x)
|
||||||
|
return 2*x
|
||||||
|
end
|
||||||
b=twice(3)
|
b=twice(3)
|
||||||
print(b)
|
print(b)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user