Ah, my bad. Nim doesn't have a slice operator like that AFAIK, so you'll have to use something like collect to get that working. As for your new error that is again because you're using `len` and not `high`. Nims `..` slice is inclusive, and iterating to the length of a collection will therefore try to step one step too far. If you use `high` you're looping to the highest available index, or you could use `..<` which loops to N-1.
- Convert Python codes to Nim codes whospal
- Convert Python codes to Nim codes PMunch
- Convert Python codes to Nim codes whospal
- Convert Python codes to Nim codes PMunch
- Convert Python codes to Nim codes Vindaar
- Convert Python codes to Nim codes mratsim
- Convert Python codes to Nim codes shirleyquirk
- Convert Python codes to Nim cod... whospal
- Convert Python codes to Nim cod... ggibson
- Convert Python codes to Nim cod... mailbox05168
- Convert Python codes to Nim cod... whospal
- Convert Python codes to Nim cod... mratsim
- Convert Python codes to Nim cod... whospal
