- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for LSS (0.01 sec)
-
src/go/constant/example_test.go
constant.MakeString("Frame"), constant.MakeString("defer"), constant.MakeFromLiteral(`"a"`, token.STRING, 0), } slices.SortFunc(vs, func(a, b constant.Value) int { if constant.Compare(a, token.LSS, b) { return -1 } if constant.Compare(a, token.GTR, b) { return +1 } return 0 }) for _, v := range vs { fmt.Println(constant.StringVal(v)) } // Output: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0)