This commit is contained in:
cooldome 2020-08-28 16:57:52 +01:00 • committed by GitHub
commit f8c48fc186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View file

@ -3,6 +3,7 @@ discard """
output: '''
hello
hello
@[4, 3, 2, 1]
'''
"""
@ -11,3 +12,18 @@ import dmodule
var val = parseMinValue()
if val.kind == minDictionary:
echo val
#------------------------------------------------------------------------------
# Issue #15035
#------------------------------------------------------------------------------
proc countRun(lst: sink openArray[int]): int =
discard
proc timSort(lst: var openArray[int]) =
let run = countRun(lst)
var a = @[4, 3, 2, 1]
timSort(a)
echo a