Documentation
¶
Index ¶
- func Equals(a, b any) bool
- func SliceContains(slice []any, v any) bool
- func SliceEquals(sliceA, sliceB []any) bool
- type Comparable
- type Tuple2
- func (x *Tuple2[V1, V2]) Concat(delimiter ...string) string
- func (x *Tuple2[V1, V2]) Contains(v any) bool
- func (x *Tuple2[V1, V2]) Copy() *Tuple2[V1, V2]
- func (x *Tuple2[V1, V2]) Equals(target *Tuple2[V1, V2]) bool
- func (x *Tuple2[V1, V2]) First() V1
- func (x *Tuple2[V1, V2]) Last() V2
- func (x *Tuple2[V1, V2]) Len() int
- func (x *Tuple2[V1, V2]) Merge(target Tuple2[V1, V2])
- func (x *Tuple2[V1, V2]) Remove(target Tuple2[V1, V2])
- func (x *Tuple2[V1, V2]) Slice() []any
- func (x *Tuple2[V1, V2]) String() string
- func (x *Tuple2[V1, V2]) Unpack() (V1, V2)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceContains ¶
func SliceEquals ¶
Types ¶
type Comparable ¶
type Tuple2 ¶
type Tuple2[V1, V2 any] struct { V1 V1 V2 V2 }
func New2FromSlice ¶
New2FromSlice 从Slice创建元组,slice元素会从左到右解构赋值给元组,如果长度超过了的话超过的部分会忽略,如果长度不够不够的部分会保持对应类型的零值
Click to show internal directories.
Click to hide internal directories.