slices

package
v6.5.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BreakIntoGroups

func BreakIntoGroups[T any](collection []T, groupSize int) [][]T

BreakIntoGroups breaks a slice into groups of a given size.

func IsInSlice

func IsInSlice[T comparable](item T, slice []T) bool

IsInSlice checks if an item is in a slice. This function will work on anything that implements the comparable interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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