mirror of
https://github.com/MontFerret/ferret.git
synced 2025-02-01 13:07:49 +02:00
24d8eedd4c
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
16 lines
523 B
Go
16 lines
523 B
Go
package arrays
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
|
)
|
|
|
|
// OUTERSECTION return the values that occur only once across all arrays specified.
|
|
// The element order is random.
|
|
// @param {Any[], repeated} arrays - An arbitrary number of arrays as multiple arguments (at least 2).
|
|
// @return {Any[]} - A single array with only the elements that exist only once across all provided arrays.
|
|
func Outersection(_ context.Context, args ...core.Value) (core.Value, error) {
|
|
return sections(args, 1)
|
|
}
|