We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
提示:哪一章节的问题,建议如何修改 import "sort"
func main() { values := []int32{42, 9, 101, 95, 27, 25}
sort.Slice(values, less func(i, j int) bool { return values[i] < values[j] }) fmt.Println(values)
}
这个地方 less 这个关键字可以不要
The text was updated successfully, but these errors were encountered:
不对 应该是不能要,要了就报错了
Sorry, something went wrong.
不过 大佬 辛苦了 学无止境
欢迎提交pr
5c31aca
Merge pull request #341 from qichengzx/master
1721cb2
fix #275
No branches or pull requests
提示:哪一章节的问题,建议如何修改
import "sort"
func main() {
values := []int32{42, 9, 101, 95, 27, 25}
}
这个地方 less 这个关键字可以不要
The text was updated successfully, but these errors were encountered: