There is 
[countup](https://nim-lang.github.io/Nim/system.html#countup.i%2CT%2CT%2CPositive),
 which can be used as:
    
    
    var text = "Hello there How are you This is a string Blah Blah Blah"
    for i in countup(0, len(text)-3, 2):
      echo text[i],text[i+1],text[i+2]
    
    
    Run

(Notice `len(text)-3`, because unlike Python's `range`, Nim's `countup` has 
inclusive bounds (You could also use `high(text)-2`)

Reply via email to