Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
caligian
· 3y ago · 0 comments
Yes. My point is that it should not matter because you can stick to table indexing with +-1 or create a function for the same
Comments
[–]
Joker_vD
3y ago
So what does this "simple function" look like?
[–]
caligian
OP
3y ago
function mod0(x, y) return (x % y) + 1 end
Something like this? You replace % with mod0()