collections

package
v0.6.50 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any[T any](f func(T) bool, list []T)

func Concat

func Concat[T any](left []T, right []T) []T

func DictMerge

func DictMerge[K comparable, V any](left map[K]V, right map[K]V) map[K]V

func Difference

func Difference[T comparable](from []T, remove []T) []T

func Duplicate

func Duplicate[T any](x T) []T

func Fanout

func Fanout[T any, R any](fs []func(T) R, item T) []R

func Filter

func Filter[T any](fn func(some T) bool, list []T) []T

func Flatmap

func Flatmap[T any, R any](fn func(some T) []R, list []T) []R

func Fmap

func Fmap[T any, R any](fn func(some T) R, list []T) []R

func Foldl

func Foldl[T any, R any](fn func(acc R, next T) R, base R, list []T) R

func Foldr

func Foldr[T any, R any](fn func(next T, carry R) R, base R, list []T) R

func ToDict

func ToDict[T comparable](xs []T) map[T]bool

func Uniq

func Uniq[T comparable](xs []T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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