util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any added in v1.2.0

func Any[X any](xs []X, f func(X) bool) bool

func Apply added in v1.2.0

func Apply[A, B any](as []A, f func(a A) B) []B

func MinInt

func MinInt(a, b int) int

MinInt is the minimum of two integers

func Reverse

func Reverse[X any](xs []X) []X

Reverse reverses a list contents

func ZipApply

func ZipApply[A, B, C any](f func(a A, b B) C, as []A, bs []B) []C

ZipApply will apply to a function to the a[i], b[i] and return a list of the result, where a and b are too independent lists. If the lists are different sizes, it will only zip until the length of the shorter list

Types

This section is empty.

Jump to

Keyboard shortcuts

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