- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleInts (0.08 sec)
-
src/sort/example_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sort_test import ( "fmt" "math" "sort" ) func ExampleInts() { s := []int{5, 2, 6, 3, 1, 4} // unsorted sort.Ints(s) fmt.Println(s) // Output: [1 2 3 4 5 6] } func ExampleIntsAreSorted() { s := []int{1, 2, 3, 4, 5, 6} // sorted ascending
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:29:29 UTC 2017 - 2.8K bytes - Viewed (0)