util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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