parent
cf6d41b51d
commit
9bacdd64c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue