mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: updateimport ()
and []array
This commit is contained in:
parent
7b39ab6d06
commit
9f4d498ff1
59 changed files with 181 additions and 254 deletions
|
@ -9,7 +9,7 @@ const (
|
|||
fn main() {
|
||||
rand.seed(time.now().unix)
|
||||
rand.next(MAX) // skip the first
|
||||
mut arr := []int
|
||||
mut arr := []int{}
|
||||
for _ in 0..LEN {
|
||||
arr << rand.next(MAX)
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ fn quick_sort(arr mut []int, l int, r int) {
|
|||
quick_sort(mut arr, sep+1, r)
|
||||
}
|
||||
|
||||
[inline]
|
||||
[inline]
|
||||
fn swap(arr mut []int, i int, j int) {
|
||||
temp := arr[i]
|
||||
arr[i] = arr[j]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue