slices2

package
v0.17.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package slices2 contains generic Slice helpers; Some of this code is sourced from https://github.com/luraim/fun (Apache v2)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[T any](s []T, fn func(T) bool) bool

All returns true if all elements return true for given predicate

func Any

func Any[T any](s []T, fn func(T) bool) bool

Any returns true if at least one element returns true for given predicate

func Map

func Map[From, To any](in []From, f func(From) To) []To

Types

This section is empty.

Jump to

Keyboard shortcuts

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