Probably one to file under "Newbie Questions", but here goes...

I'm trying to iterate over a string and get the characters in it 3 at a time.

In Python, I can use the fact that range has a step attribute to do something 
like:
    
    
    text = "Hello there How are you This is a string Blah Blah Blah"
    for i in range(0, len(text)-2, 2):
      print(text[i],text[i+1],text[i+2])
    
    
    Run

But I can't seem to find a similar way to do it in Nim. I've searched the docs 
but can't find any mention of how to define a step value when looping over 
<something>

Can someone give me a clue?

Reply via email to