Hacker News new | past | comments | ask | show | jobs | submit login

function mod0(x, y) return (x % y) + 1 end

Something like this? You replace % with mod0()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: