enumerable

package
v0.0.0-...-be06bb6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectFunc

func CollectFunc[T, K any](seq iter.Seq[T], f func(T) K) iter.Seq[K]

func Delete

func Delete[T comparable](ary []T, val T) []T

func Each

func Each[T any](ary []T, f func(T)) []T

func FindAll

func FindAll[T comparable](ary []T, f func(T) bool) []T

func Index

func Index[T any](ary []T, f func(T) bool) int

func InsertBefore

func InsertBefore[T comparable](s []T, before T, v ...T) []T

func IsInclude

func IsInclude[T comparable](ary []T, val T) bool

func Map

func Map[T, K any](ary []T, f func(T) K) []K

func Sum

func Sum[T any](ary []T, m func(T) int64) int64

func Uniq

func Uniq[T, K comparable](ary []T, f func(T) K) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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