misc

package
v0.0.0-...-923a9ec Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlattenMap

func FlattenMap[T comparable, U any](m map[T][]U) []U

func FlattenSlice

func FlattenSlice[T comparable](slice [][]T) []T

func InSlice

func InSlice[T comparable](val T, list []T) bool

InSlice checks to see if a value is in a given slice

func ListInner

func ListInner(stxn *types.SignedTxnWithAD) []types.SignedTxnWithAD

func Pointer

func Pointer[T any](v T) *T

func PointerBool

func PointerBool(v bool) *bool

func SliceEqual

func SliceEqual[T comparable](a, b []T) bool

SliceEqual checks if two slices are equal

func SliceOverlap

func SliceOverlap[T comparable](a, b []T) bool

func ToInterfaceSlice

func ToInterfaceSlice[T any](arr []T) []interface{}

func UniqueSlice

func UniqueSlice[T comparable](slice []T) []T

UniqueSlice takes a slice and removes duplicates

Types

This section is empty.

Jump to

Keyboard shortcuts

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