Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Joker_vD
· 3y ago · 0 comments
So what does this "simple function" look like?
Comments
[–]
caligian
3y ago
function mod0(x, y) return (x % y) + 1 end
Something like this? You replace % with mod0()