package
1.9.2
Repository: https://github.com/kubevela/pkg.git
Documentation: pkg.go.dev

# Functions

All checks if all items satisfy the condition function.
Any checks if any item satisfy the condition function.
Contains test if target array contains pivot If T is a pointer, T needs to implement Equal(T) function, otherwise the pointer address If T is not a pointer, T could be either.
Count checks how many items satisfy the condition function.
Filter functional filter for array items.
Find search the first item with function.
Flatten the given arr.
GroupBy group by array items with given projection function.
Index search the index of array item with function.
Intersect calculate the intersection of two array.
IterToArray convert iterable to list.
Map functional conversion for array items.
NewParConfig build config for par execution.
ParFor run parallel executions for items in arr.
ParMap run parallel mapping functions for arr, returned values are ordered.
Reduce array.
Sort given array.
Subtract calculate the subtraction of two array.
Union calculate the union of two array.

# Constants

DefaultParallelism default parallelism for par.

# Structs

ParConfig config for par execution.

# Interfaces

Iterable .
ParOption options for par execution.

# Type aliases

Parallelism specify the parallelism of par execution.