Documentation ¶
Index ¶
- func AA(ss aa)
- func Append[A any](dest []A, e ...A) []A
- func ArrayToMap[A comparable, B any](fn func(B) A, bb []B) map[A]B
- func Bar(t Tuple5[string, string, string, string, string])
- func Fold[A, B any](acc B, a []A, folder func(acc B, a A) B) (b B)
- func Foo(a, b, c string, d ...string)
- func Foreach[A any](aa []A, iter func(i int, a A) bool)
- func IsNil[A any](p *A) bool
- func Left[A, B any](a A, _ B) A
- func Map[A, B any](a []A, mapper func(a A) B) (b []B)
- func MapE[A, B any](a []A, mapper func(a A) (B, error)) (b []B, err error)
- func MapToArray[A comparable, B any](mAB map[A]B) []B
- func Placeholder[A any]() func(A) (A, error)
- func Pointer[A any](a A) *A
- func Right[A, B any](_ A, b B) B
- func Value[A any](p *A) A
- type Lazy
- type Pair
- type Tuple3
- type Tuple4
- type Tuple5
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToMap ¶
func ArrayToMap[A comparable, B any](fn func(B) A, bb []B) map[A]B
func MapToArray ¶
func MapToArray[A comparable, B any](mAB map[A]B) []B
func Placeholder ¶
Types ¶
type Pair ¶
type Pair[A, B any] struct { A A B B }
func (Pair[A, B]) Deconstruct ¶
func (p Pair[A, B]) Deconstruct() (A, B)
type Tuple3 ¶
type Tuple3[A, B, C any] struct { A A B B C C }
func (Tuple3[A, B, C]) Deconstruct ¶
func (patr Tuple3[A, B, C]) Deconstruct() (A, B, C)
Click to show internal directories.
Click to hide internal directories.