@Prohyon it's actually the other way around. When you use a `for` loop with 1 iterator (e.g. `for i in 0 .. 9:`) you are iterating over **values**. If you want to also have the corresponding index of each loop you have to do ` for i, v in 0 .. 9:`, then `i` will be the index and `v` the value. Also keep in mind that `mod` is an expensive function, you should try to avoid it if possible.
- Re: New "Learn Nim" page moerm
- Re: New "Learn Nim" page juancarlospaco
- Re: New "Learn Nim" page moerm
- Re: New "Learn Nim" page Prohyon
- Re: New "Learn Nim" page moerm
- Re: New "Learn Nim" page Prohyon
- Re: New "Learn Nim" page liwt31
- Re: New "Learn Nim" page Prohyon
- Re: New "Learn Nim" page jlp765
- Re: New "Learn Nim" page Prohyon
- Re: New "Learn Nim" page rect0x51
- Re: New "Learn Nim" page miran
- Re: New "Learn Nim" page miran
- Re: New "Learn Nim" page Prohyon
- Re: New "Learn Nim" page liwt31