mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add static Lua-style functions: Bytearray.insert, Bytearray.remove, Bytearray.append
This commit is contained in:
parent
9169049530
commit
fb07c86ea6
4 changed files with 73 additions and 51 deletions
|
|
@ -10,3 +10,6 @@ end
|
|||
for i, v in ipairs(arr) do
|
||||
assert(v == 10 - i)
|
||||
end
|
||||
|
||||
Bytearray.remove(arr, 2)
|
||||
assert(#arr == 9)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue