mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
refs #18011 disable some newly failing tests on cpp windows; refs #17946 increase timeout for tchannels (#18012)
This commit is contained in:
@@ -1317,10 +1317,10 @@ proc del*[T](x: var seq[T], i: Natural) {.noSideEffect.} =
|
||||
##
|
||||
## See also:
|
||||
## * `delete <#delete,seq[T],Natural>`_ for preserving the order
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## var i = @[1, 2, 3, 4, 5]
|
||||
## i.del(2) # => @[1, 2, 5, 4]
|
||||
runnableExamples:
|
||||
var a = @[10, 11, 12, 13, 14]
|
||||
a.del(2)
|
||||
assert a == @[10, 11, 14, 13]
|
||||
let xl = x.len - 1
|
||||
movingCopy(x[i], x[xl])
|
||||
setLen(x, xl)
|
||||
|
||||
Reference in New Issue
Block a user