xslices

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnF

func ColumnF[T comparable, V comparable](s []T, fn func(T) V) []V

func Concatenate

func Concatenate[T any](s []T, objs ...[]T) []T

func Contains

func Contains[T comparable](slices []T, values ...T) bool

Contains checks if str is in list.

func Filter

func Filter[T any](slice []T, fun func(item T) bool) []T

func IndexF

func IndexF[T comparable](s []T, fn func(T) string) map[string]T

func Merge

func Merge[T comparable](s []T, ts ...T) []T

func Pluck

func Pluck[T any, V comparable](s []T, getValue func(item T) V) []V

func Remove

func Remove[T comparable](slices []T, ts ...T) []T

Remove removes given strs from strings.

func UniqueF

func UniqueF[T comparable](s []T, fn func(T) string) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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