Hi all,
I have submitted issue [#12625](https://github.com/nim-lang/Nim/issues/12625)
on GitHub on generating func-s (closures) with mapIt, where the code crashes
nimvm or behaviors wrongly in runtime.
Further checking indicates that the root cause is that, {.inject.} variables
(it in this case) are [not injected into
closures](https://github.com/nim-lang/Nim/issues/12625#issuecomment-553211144),
but represented by a global variable.
I repost it here, and hope that it can be resolved in a fundamental/systematic
way.
A quick fix for mapIt(func ...) can be map((it) => func ...), :)