whenever you need a zigzag, don’t write ifs; just fold the number line Math.abs((i+=10)%200 - 100)
David Aerne
Visit on X@meodai10K followers
18,143 views
whenever you need a zigzag, don’t write ifs; just fold the number line Math.abs((i+=10)%200 - 100)
been using this ever since I “discovered” it.
Comments
Comments from the original post on X (Twitter)
No comments yet
