mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 07:51:32 +00:00
@@ -657,7 +657,7 @@ template mapIt*(s, op: untyped): untyped =
|
||||
when compiles(s.len):
|
||||
let t = s
|
||||
var i = 0
|
||||
result = newSeq[outType](s.len)
|
||||
result = newSeq[outType](t.len)
|
||||
for it {.inject.} in t:
|
||||
result[i] = op
|
||||
i += 1
|
||||
|
||||
Reference in New Issue
Block a user