How I feel programming in Lua without a motherfucker saying how it's impossible to program with arrays that starts at index 1.
>>105596789If you can't program your own string splitter are you really a programmer?
>>105596789function SplitString(str, del)
local res = {}
local cur = 1
for i = 1, #str do
if str[i] == del then
local r = ""
for ii = cur, i do
r = r .. str[ii]
end
res[#res + 1] = r
cur = cur + #r
end
end
end
>>105596831Forgot to return res thus you are a nigger.
No, to be fair he has a good argument. String splitting is an extremely.common operation and it being unavailable by default is really shitty. Same as ocaml being unusable because the stdlib has to be replaced to do anything with it.