package
Version:
v0.0.0-...-68e5106
Opens a new window with list of versions in this module.
Published: Nov 21, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Filter[T any](slice []T, predicate func(T) bool) []T
Filter 通用过滤函数,接受任何类型的切片和谓词函数
Source Files
¶
Click to show internal directories.
Click to hide internal directories.