I'm seeing this error when I pass an empty seq to mapIt
C:\Users\slayc\.choosenim\toolchains\nim-#devel\lib\system\fatal.nim(54)
sysFatal
Error: unhandled exception: index out of bounds, the container is empty
[IndexDefect]
Error: execution of an external program failed:
'c:\Users\slayc\source\repos\AdventOfCode\Nim\nim2022\src\MainModule.exe'
Run
Of course I can avoid this error by testing for len = 0 but I was wondering if
I should raise this as an issue as mapIt should probably handle an empty
sequence a bit more gracefully.
Looking at the code for mapIt it doesn't seem that there is an explicit test
for an empty seq.
I am not a novice at nim programming. Such a claim would be implying I have far
more competence and capability than in reality.