> I tried with...
> 
> [invalid syntax]

If you really want to force list comprehensions, how about you first get 
familiar with the correct Nim syntax for them? 
[link](https://nim-lang.org/docs/sugar.html#\[\].m%2CListComprehension%2Cuntyped%2Cuntyped)

But my advice would be: don't use list comprehensions in Nim — think about how 
would you have written your python code without them and then try to translate 
_that_ version, you'll have much better time.

Reply via email to