Open hbwales opened 3 years ago
https://github.com/nim-lang/Nim/pull/11992 would fix this (and the general case as well), until then you can use mapIt
instead of map
when true:
import strutils, sequtils
var data = "aaa aaa"
echo data.split(" ").mapIt(toSeq(it))
Using toSeq in map causes and internal error
Example
Current Output
Expected Output
Additional Information