unpublic arrayWith and rename it to nimArrayWith (#21006)
* unpublic arrayWith * unindent
This commit is contained in:
parent
83493e4294
commit
55373e65b4
3 changed files with 6 additions and 6 deletions
|
|
@ -2798,7 +2798,7 @@ when notJSnotNims and not defined(nimSeqsV2):
|
|||
assert y == "abcgh"
|
||||
discard
|
||||
|
||||
proc arrayWith*[T](y: T, size: static int): array[size, T] {.noinit.} = # ? exempt from default value for result
|
||||
proc nimArrayWith[T](y: T, size: static int): array[size, T] {.compilerRtl, raises: [].} =
|
||||
## Creates a new array filled with `y`.
|
||||
for i in 0..size-1:
|
||||
result[i] = y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue