mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Deleting an empty file. Also minor changes to the test.lua file
This commit is contained in:
parent
00c4e1c85d
commit
d8f783f466
@ -1 +0,0 @@
|
|||||||
-- Not yet implemented.
|
|
@ -210,19 +210,21 @@ print("Length of string1 is ",string.len(string1))
|
|||||||
print("Repeated String",string.rep(string1,3))
|
print("Repeated String",string.rep(string1,3))
|
||||||
print("********************************************")
|
print("********************************************")
|
||||||
|
|
||||||
print("****************OS Functions *******")
|
print("****************Table Functions *******")
|
||||||
fruits = {"banana","orange","apple"}
|
fruits = {"banana","orange","apple"}
|
||||||
print("Table contents are ")
|
print("Table contents are ")
|
||||||
for key,value in ipairs(fruits) do print(value) end
|
for key,value in ipairs(fruits) do print(value) end
|
||||||
print("Concatenated string ",table.concat(fruits))
|
print("Concatenated string ",table.concat(fruits))
|
||||||
print("Concatenated string ",table.concat(fruits,", "))
|
print("Concatenated string ",table.concat(fruits,", "))
|
||||||
print("Concatenated string ",table.concat(fruits,", ", 2,3))
|
print("Concatenated string ",table.concat(fruits,", ", 2,3))
|
||||||
print("Inserting new fruit Mango")
|
print("Inserting new fruit mango")
|
||||||
table.insert(fruits,"mango")
|
table.insert(fruits,"mango")
|
||||||
for key,value in ipairs(fruits) do print(value) end
|
for key,value in ipairs(fruits) do print(value) end
|
||||||
print("Concatenated string ",table.concat(fruits,", "))
|
print("Concatenated string ",table.concat(fruits,", "))
|
||||||
print("The maximum elements in table is",table.maxn(fruits))
|
print("The maximum elements in table is",table.maxn(fruits))
|
||||||
print("The maximum elements in table is",table.remove(fruits))
|
print("Table contents after sorting are ",table.sort(fruits))
|
||||||
fruits = {"banana","orange","apple","grapes"}
|
for key,value in ipairs(fruits) do print(value) end
|
||||||
print("The maximum elements in table is",table.sort(fruits))
|
print("Removing the last element from the table:" ,table.remove(fruits))
|
||||||
|
print("Table contents are ")
|
||||||
|
for key,value in ipairs(fruits) do print(value) end
|
||||||
print("********************************************")
|
print("********************************************")
|
||||||
|
Loading…
Reference in New Issue
Block a user