Documentation ¶
Index ¶
- func Filter[T any](slices []T, satisfied func(T) bool) []T
- func Get[T comparable](value, dv T) T
- func If(cond bool, f func())
- func IfExpr[T any](cond bool, y, n T) T
- func In[T comparable](elems []T, dest T) bool
- func Map[T1, T2 any](slices []T1, deal func(T1) T2) []T2
- func Multi[I, O any](inS []I, f Single[I, O]) []O
- func Range[T any](elems []T, f func(T))
- func ToMap[K constraints.Integer | string, V any](slices []V, deal func(V) (K, V)) map[K]V
- type Single
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func In ¶
func In[T comparable](elems []T, dest T) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.