Documentation ¶
Index ¶
- func I0_1[K interface{ ... }]()
- func I10[K interface{ ... }]()
- func I11[K interface{ ... }]()
- func I14[K interface{ ... }]()
- func I15[K interface{ ... }]()
- func I16[K interface{ ... }]()
- func I5[K any, V interface{ ... }]()
- func I7[K any, V interface{ ... }]()
- func I9[K any, V interface{ ... }]()
- func Scale[E constraints.Integer](s []E, c E) []E
- func Scale1[S ~[]E, E constraints.Integer](s S, c E) S
- func ScaleAndPrint(p Point)
- func Stringify[T fmt.Stringer](s []T) (ret []string)
- func Stringify2[T fmt.Stringer](s []T) (ret []string)
- func TestB()
- func TestFoo()
- func TestStringify()
- func Zero1[T any]() T
- func Zero2[T any]() T
- func Zero3[T any]() (t T)
- func ZeroValue1(v any) bool
- type A
- type Animal
- type C
- type CC
- type Chan
- type Error
- type Error2
- type Foo
- type Func
- type Heap
- type I00
- type I000
- type I8
- type Int1
- type Int2
- type Int3
- type IntStr
- type List
- type ListElement
- type ListHead
- type Map
- type MyInt
- type MyInt2
- type P
- type Point
- type TT2
- type TT3
- type TenItems
- type Tree
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func I15 ¶
func I15[K interface { comparable }]()
func I16 ¶
func I16[K interface { error comparable }]()
func Scale ¶
func Scale[E constraints.Integer](s []E, c E) []E
func Scale1 ¶
func Scale1[S ~[]E, E constraints.Integer](s S, c E) S
Scale returns a copy of s with each element multiplied by c.
func ScaleAndPrint ¶
func ScaleAndPrint(p Point)
func Stringify2 ¶
func TestStringify ¶
func TestStringify()
func ZeroValue1 ¶
Types ¶
type ListElement ¶
type ListElement[T any] struct { // contains filtered or unexported fields }
type Map ¶
type Map[K comparable, V any] map[K]V
Source Files ¶
Click to show internal directories.
Click to hide internal directories.