Add support for in and nin ref handlers in reporter joins

This commit is contained in:
Tomaž Jerman
2022-12-12 15:22:09 +01:00
committed by Jože Fortun
parent 8f3c3c3ea7
commit 107d7a70ce
4 changed files with 117 additions and 17 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ func ArrayFunctions() []gval.Language {
gval.Function("pop", pop),
gval.Function("shift", shift),
gval.Function("count", count),
gval.Function("has", has),
gval.Function("has", Has),
gval.Function("hasAll", hasAll),
gval.Function("find", find),
gval.Function("sort", sortSlice),
@@ -157,7 +157,7 @@ func count(arr interface{}, v ...interface{}) (count int, err error) {
}
// has finds any occurrence of the values in slice or key in a map
func has(arr interface{}, vv ...interface{}) (b bool, err error) {
func Has(arr interface{}, vv ...interface{}) (b bool, err error) {
arr = UntypedValue(arr)
if isMap(arr) {