1 package main 2 3 import "fmt" 4 5 type student struct{ 6 name string 7 grade int8 8 } 9 10 func filter(stu []student, f func(s student) bool
golang实现高阶函数之filter
最新推荐文章于 2024-06-13 10:01:56 发布
1 package main 2 3 import "fmt" 4 5 type student struct{ 6 name string 7 grade int8 8 } 9 10 func filter(stu []student, f func(s student) bool