Documentation
¶
Index ¶
- func Chunk[T any](array []T, size int) [][]T
- func Copy[T any](s []T) []T
- func Drop[T any](array []T, n int) []T
- func DropRight[T any](array []T, n int) []T
- func Flatten[T any](data any) []T
- func Map[T, R any](p []T, fn func(v T, i int) R) []R
- func Object[K comparable, V any](keys []K, values []V) map[K]V
- func Reverse[T any](array []T)
- func Search[T comparable](p []T, v T) int
- func Shuffle[T any](data []T)
- func UnsafeIndex[T any](s []T, n uintptr) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Object ¶
func Object[K comparable, V any](keys []K, values []V) map[K]V
func Search ¶ added in v0.0.16
func Search[T comparable](p []T, v T) int
func UnsafeIndex ¶
UnsafeIndex returns nth element of s.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.