Thread 105596785 - /g/ [Archived: 989 hours ago]

Anonymous
6/15/2025, 3:16:07 AM No.105596785
1742089975333991
1742089975333991
md5: de029d7a9f67330b2dab4cfec72c01dc🔍
How I feel programming in Lua without a motherfucker saying how it's impossible to program with arrays that starts at index 1.
Anonymous
6/15/2025, 3:17:39 AM No.105596789
>can't split strings
Replies: >>105596796 >>105596831
Anonymous
6/15/2025, 3:19:22 AM No.105596796
>>105596789
If you can't program your own string splitter are you really a programmer?
Anonymous
6/15/2025, 3:25:36 AM No.105596831
>>105596789
function 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
Replies: >>105596844
Anonymous
6/15/2025, 3:26:59 AM No.105596844
1739042575924088
1739042575924088
md5: f8902a6865ce37e19f3b96f09ea4663f🔍
>>105596831
Forgot to return res thus you are a nigger.
Anonymous
6/15/2025, 10:07:43 AM No.105598996
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.