slice

package
v1.28.12 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DivideSlice

func DivideSlice[T any](slice []T, parts int) [][]T

DivideSlice divides a slice into a number of parts. It aims for the most equal distribution possible.

func ValidateAndDeduplicateAddresses added in v1.28.8

func ValidateAndDeduplicateAddresses(addresses []string) ([]string, bool, error)

ValidateAndDeduplicateAddresses validates a slice of addresses and deduplicates them. It returns the deduplicated slice and a boolean indicating if there were duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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