- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,535 for Comparer (0.24 sec)
-
src/cmd/go/internal/gover/gover.go
func Compare(x, y string) int { return gover.Compare(x, y) } // Max returns the maximum of x and y interpreted as toolchain versions, // compared using Compare. // If x and y compare equal, Max returns x. func Max(x, y string) string { return gover.Max(x, y) } // IsLang reports whether v denotes the overall Go language version // and not a specific release. Starting with the Go 1.21 release, "1.x" denotes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 2.5K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
// // - when applicable, nil compares low // - ints, floats, and strings order by < // - NaN compares less than non-NaN floats // - bool compares false before true // - complex compares real, then imag // - pointers compare by machine address // - channel values compare by machine address // - structs compare each field in turn // - arrays compare each element in turn.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
"c": framework.NewStatus(framework.UnschedulableAndUnresolvable, fmt.Sprintf("FakeExtender: node %q failed and unresolvable", "c")), }, }, } cmpOpts := []cmp.Option{ cmp.Comparer(func(s1 framework.Status, s2 framework.Status) bool { return s1.Code() == s2.Code() && reflect.DeepEqual(s1.Reasons(), s2.Reasons()) }), } for _, tt := range tests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ComparisonChain.java
public ComparisonChain compare(int left, int right) { return classify(Ints.compare(left, right)); } @Override public ComparisonChain compare(long left, long right) { return classify(Longs.compare(left, right)); } @Override public ComparisonChain compare(float left, float right) { return classify(Float.compare(left, right)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 9.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ComparisonChain.java
public ComparisonChain compare(int left, int right) { return classify(Ints.compare(left, right)); } @Override public ComparisonChain compare(long left, long right) { return classify(Longs.compare(left, right)); } @Override public ComparisonChain compare(float left, float right) { return classify(Float.compare(left, right)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 21 17:28:11 UTC 2022 - 11.2K bytes - Viewed (0) -
src/internal/gover/gover.go
// compared using Compare. // If x and y compare equal, Max returns x. func Max(x, y string) string { if Compare(x, y) < 0 { return y } return x } // IsLang reports whether v denotes the overall Go language version // and not a specific release. Starting with the Go 1.21 release, "1.x" denotes // the overall language version; the first release is "1.x.0".
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 5.8K bytes - Viewed (0) -
test/switch3.go
switch m { case nil: case m1: // ERROR "can only compare map m to nil|map can only be compared to nil|cannot compare" default: } var a, a1 []int switch a { case nil: case a1: // ERROR "can only compare slice a to nil|slice can only be compared to nil|cannot compare" default: } var f, f1 func() switch f { case nil: case f1: // ERROR "can only compare func f to nil|func can only be compared to nil|cannot compare"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 15 19:43:32 UTC 2020 - 1.2K bytes - Viewed (0) -
test/cmp6.go
use(t3 == t3) // ERROR "struct|expected|cannot compare" use(t4 == t4) // ERROR "cannot be compared|non-comparable|cannot compare" // Slices, functions, and maps too. var x []int var f func() var m map[int]int use(x == x) // ERROR "slice can only be compared to nil|cannot compare" use(f == f) // ERROR "func can only be compared to nil|cannot compare" use(m == m) // ERROR "map can only be compared to nil|cannot compare"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 01 21:49:31 UTC 2020 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedLists.java
/** * A specification for which index to return if the list contains at least one element that * compares as equal to the key. */ enum KeyPresentBehavior { /** * Return the index of any list element that compares as equal to the key. No guarantees are * made as to which index is returned, if more than one element compares as equal to the key. */ ANY_PRESENT { @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/SortedLists.java
/** * A specification for which index to return if the list contains at least one element that * compares as equal to the key. */ enum KeyPresentBehavior { /** * Return the index of any list element that compares as equal to the key. No guarantees are * made as to which index is returned, if more than one element compares as equal to the key. */ ANY_PRESENT { @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.9K bytes - Viewed (0)