package
Version:
v0.0.0-...-9994f1b
Opens a new window with list of versions in this module.
Published: Feb 22, 2025
License: BSD-3-Clause
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
¶
Copyright 2023 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-
func Collect[T, U any](nextFunc func() (T, error), parser func(T) (U, error)) ([]U, error)
-
func Contains[T comparable](slice []T, elem T) bool
-
func Subtract[T, U any](sliceA []T, sliceB []U, compare func(a T, b U) bool) []T
func Collect[T, U any](nextFunc func() (T, error), parser func(T) (U, error)) ([]U, error)
Collect the iterator, and then use parser function to compose the result type.
Contains check the element is in the given slice.
func Subtract[T, U any](sliceA []T, sliceB []U, compare func(a T, b U) bool) []T
Source Files
¶
Click to show internal directories.
Click to hide internal directories.