- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for sl1 (0.16 sec)
-
src/cmd/compile/internal/test/testdata/ptrsort.go
type MyString struct { string } func (a *MyString) Less(b *MyString) bool { return a.string < b.string } func main() { mysort.F() sl1 := []*mysort.MyInt{{7}, {1}, {4}, {6}} mysort.Sort(sl1) fmt.Printf("%v %v %v %v\n", sl1[0], sl1[1], sl1[2], sl1[3]) sl2 := []*MyString{{"when"}, {"in"}, {"the"}, {"course"}, {"of"}} mysort.Sort(sl2) fmt.Printf("%v %v %v %v %v\n", sl2[0], sl2[1], sl2[2], sl2[3], sl2[4])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 16 19:10:58 UTC 2022 - 633 bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/mysort/mysort.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 12 20:53:52 UTC 2021 - 762 bytes - Viewed (0)