Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local Functions = {}
  2.  
  3. Functions["table.insert"] = function()
  4. local Array = {}
  5. for Index = 1, 1E4 do
  6. table.insert(Array, Index * 2)
  7. end
  8. end
  9.  
  10. Functions["#X + 1"] = function()
  11. local Array = {}
  12. for Index = 1, 1E4 do
  13. Array[#Array + 1] = Index * 2
  14. end
  15. end
  16.  
  17. Functions["Length"] = function()
  18. local Array = {}
  19. local Length = 0
  20. for Index = 1, 1E4 do
  21. Length = Length + 1
  22. Array[Length] = Index * 2
  23. end
  24. end
  25.  
  26. require(2110831719).new(1, "Array Insertion 1", Functions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement