package
Version:
v0.0.0-...-3a0e23c
Opens a new window with list of versions in this module.
Published: Sep 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func SlicesCount[T any](s []T, test func(T) bool) int
スライスの要素のうち、指定した条件を満たす要素の数を返す
func SlicesDifference[T comparable](a []T, b []T) []T
スライスの差分を取得
func SlicesFilter[T any](s []T, test func(T) bool) []T
スライスの要素のうち、指定した条件を満たす要素を返す
func SlicesIntersect[T comparable](a []T, b []T) []T
スライスの共通部分を取得
func SlicesMap[T any, U any](s []T, f func(T) U) []U
スライスの要素を変換して新しいスライスを作成
Source Files
¶
Click to show internal directories.
Click to hide internal directories.