@jzakiya I think that one of the things for which Nim should be praised is the 
fact that things that are missing can be very easily added to the language: 
this was my implementation of the `...` operator (it can also be used to 
iterate backwards: 10...0 starts from 10 and ends with 1), if you really like 
it you can use it or write your own (NIMBY) 
    
    
    iterator `...`*[T](a: T, b: T): T =
        var res: T = T(a)
        if a<b:
            while res < b:
                yield res
                inc res
        else:
            while res > b:
                yield res
                dec res
    

Reply via email to