Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
conistonwater
on March 18, 2021
|
parent
|
context
|
favorite
| on:
Manim – an animation engine for explanatory math v...
Can't you just use mod(x, 1:n)? Or mod(i, eachindex(vals))?
shele
on March 19, 2021
[–]
Lol, this is so nice. It is literally what OP asked for: " modulo to remain within some range" is just mod(myvalue, myrange)
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: