@@ -385,7 +385,7 @@ Go里面有一个不错的设计,就是回调函数,有点类似面向对象
}
//声明的函数类型在这个地方当做了一个参数
func filter(slice []int, f test_int) []int {
func filter(slice []int, f testInt) []int {
var result []int
for _, value := range slice {
if f(value) {
The note is not visible to the blocked user.