- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 4,735 for Sort (0.05 sec)
-
src/sort/example_multi_test.go
} // Sort sorts the argument slice according to the less functions passed to OrderedBy. func (ms *multiSorter) Sort(changes []Change) { ms.changes = changes sort.Sort(ms) } // OrderedBy returns a Sorter that sorts using the less functions, in order. // Call its Sort method to sort the data. func OrderedBy(less ...lessFunc) *multiSorter { return &multiSorter{ less: less, } } // Len is part of sort.Interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 13 20:16:24 UTC 2022 - 4K bytes - Viewed (0) -
src/sort/sort_slices_benchmark_test.go
for i := 0; i < b.N; i++ { Sort(StringSlice(ss)) } } func BenchmarkSlicesSortStrings_Sorted(b *testing.B) { ss := makeSortedStrings(N) b.ResetTimer() for i := 0; i < b.N; i++ { slices.Sort(ss) } } // These benchmarks compare sorting a slice of structs with sort.Sort vs. // slices.SortFunc. type myStruct struct { a, b, c, d string n int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 22:59:40 UTC 2024 - 4K bytes - Viewed (0) -
src/sort/example_keys_test.go
type By func(p1, p2 *Planet) bool // Sort is a method on the function type, By, that sorts the argument slice according to the function. func (by By) Sort(planets []Planet) { ps := &planetSorter{ planets: planets, by: by, // The Sort method's receiver is the function (closure) that defines the sort order. } sort.Sort(ps) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:48:39 UTC 2017 - 2.7K bytes - Viewed (0) -
src/sort/sort_test.go
} Ints(data) if !IntsAreSorted(data) { t.Errorf("sort didn't sort - 1M ints") } } func TestReverseSortIntSlice(t *testing.T) { data := ints data1 := ints a := IntSlice(data[0:]) Sort(a) r := IntSlice(data1[0:]) Sort(Reverse(r)) for i := 0; i < len(data); i++ { if a[i] != r[len(data)-1-i] { t.Errorf("reverse sort didn't sort") } if i > len(data)/2 { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:41:04 UTC 2024 - 16.9K bytes - Viewed (0) -
src/main/webapp/WEB-INF/orig/view/search.jsp
data-toggle="control-options"> <c:if test="${empty sort}"> <la:message key="labels.searchoptions_score" /> </c:if> <c:if test="${sort=='score.desc'}"> <la:message key="labels.searchoptions_score" /> </c:if> <c:if test="${sort=='filename.asc'}"> <la:message key="labels.search_result_sort_filename_asc" /> </c:if> <c:if test="${sort=='filename.desc'}">
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Fri Feb 17 12:13:41 UTC 2023 - 6.6K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/search.jsp
data-toggle="control-options"> <c:if test="${empty sort}"> <la:message key="labels.searchoptions_score" /> </c:if> <c:if test="${sort=='score.desc'}"> <la:message key="labels.searchoptions_score" /> </c:if> <c:if test="${sort=='filename.asc'}"> <la:message key="labels.search_result_sort_filename_asc" /> </c:if> <c:if test="${sort=='filename.desc'}">
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Fri Feb 17 12:13:41 UTC 2023 - 6.6K bytes - Viewed (0) -
src/sort/example_interface_test.go
{"Michael", 17}, {"Jenny", 26}, } fmt.Println(people) // There are two ways to sort a slice. First, one can define // a set of methods for the slice type, as with ByAge, and // call sort.Sort. In this first example we use that technique. sort.Sort(ByAge(people)) fmt.Println(people) // The other way is to use sort.Slice with a custom Less // function, which can be provided as a closure. In this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 24 14:40:37 UTC 2017 - 1.5K bytes - Viewed (0) -
src/sort/example_search_test.go
// license that can be found in the LICENSE file. package sort_test import ( "fmt" "sort" ) // This example demonstrates searching a list sorted in ascending order. func ExampleSearch() { a := []int{1, 3, 6, 10, 15, 21, 28, 36, 45, 55} x := 6 i := sort.Search(len(a), func(i int) bool { return a[i] >= x }) if i < len(a) && a[i] == x { fmt.Printf("found %d at index %d in %v\n", x, i, a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 18 08:25:24 UTC 2021 - 2.1K bytes - Viewed (0) -
test/fixedbugs/bug188.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 04 06:36:33 UTC 2021 - 284 bytes - Viewed (0) -
src/cmd/nm/nm.go
"bufio" "flag" "fmt" "log" "os" "sort" "cmd/internal/objfile" "cmd/internal/telemetry" ) const helpText = `usage: go tool nm [options] file... -n an alias for -sort address (numeric), for compatibility with other nm commands -size print symbol size in decimal between address and type -sort {address,name,none,size} sort output in the given order (default name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 3.1K bytes - Viewed (0)