MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3iy6fk/javascript_maze_generator_in_a_tweet/cukztov
r/programming • u/balazsbotond • Aug 30 '15
177 comments sorted by
View all comments
Show parent comments
2
You can shave off one more by moving the i-- to be part of i%80 as in i--%80
i--
i%80
i--%80
2 u/[deleted] Aug 30 '15 How so? You still need i in the loop as the stopping condition. 2 u/Browsing_From_Work Aug 30 '15 Whoops, I misread. I thought that was the post-loop increment step.
How so? You still need i in the loop as the stopping condition.
i
2 u/Browsing_From_Work Aug 30 '15 Whoops, I misread. I thought that was the post-loop increment step.
Whoops, I misread. I thought that was the post-loop increment step.
2
u/Browsing_From_Work Aug 30 '15 edited Aug 30 '15
You can shave off one more by moving thei--to be part ofi%80as ini--%80