@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
- Re: Another reason to deprecate ..< Araq
- Re: Another reason to deprecate ..< moigagoo
- Re: Another reason to deprecate ..< moigagoo
- Re: Another reason to deprecate ..< moigagoo
- Re: Another reason to deprecate ..< woggioni
- Re: Another reason to deprecate ..< jlp765
- Re: Another reason to deprecate ..< cdunn2001
- Re: Another reason to deprecate ..< mratsim
- Re: Another reason to deprecate ..< jlp765
- Re: Another reason to deprecate ..< Udiknedormin
- Re: Another reason to deprecate ..< woggioni
