Documentation ¶
Index ¶
- func FlattenMap[T comparable, U any](m map[T][]U) []U
- func FlattenSlice[T comparable](slice [][]T) []T
- func InSlice[T comparable](val T, list []T) bool
- func ListInner(stxn *types.SignedTxnWithAD) []types.SignedTxnWithAD
- func Pointer[T any](v T) *T
- func PointerBool(v bool) *bool
- func SliceEqual[T comparable](a, b []T) bool
- func SliceOverlap[T comparable](a, b []T) bool
- func ToInterfaceSlice[T any](arr []T) []interface{}
- func UniqueSlice[T comparable](slice []T) []T
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 PointerBool ¶
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.
Click to show internal directories.
Click to hide internal directories.