collection

package
v0.0.0-...-9994f1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

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.

func Contains

func Contains[T comparable](slice []T, elem T) bool

Contains check the element is in the given slice.

func Subtract

func Subtract[T, U any](sliceA []T, sliceB []U, compare func(a T, b U) bool) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL