github.com/MontFerret/ferret@v0.18.0/pkg/stdlib/arrays/outersection.go (about) 1 package arrays 2 3 import ( 4 "context" 5 6 "github.com/MontFerret/ferret/pkg/runtime/core" 7 ) 8 9 // OUTERSECTION return the values that occur only once across all arrays specified. 10 // The element order is random. 11 // @param {Any[], repeated} arrays - An arbitrary number of arrays as multiple arguments (at least 2). 12 // @return {Any[]} - A single array with only the elements that exist only once across all provided arrays. 13 func Outersection(_ context.Context, args ...core.Value) (core.Value, error) { 14 return sections(args, 1) 15 }