github.com/MontFerret/ferret@v0.18.0/pkg/stdlib/objects/lib.go (about)

     1  package objects
     2  
     3  import "github.com/MontFerret/ferret/pkg/runtime/core"
     4  
     5  func RegisterLib(ns core.Namespace) error {
     6  	return ns.RegisterFunctions(
     7  		core.NewFunctionsFromMap(map[string]core.Function{
     8  			"HAS":             Has,
     9  			"KEYS":            Keys,
    10  			"KEEP_KEYS":       KeepKeys,
    11  			"MERGE":           Merge,
    12  			"ZIP":             Zip,
    13  			"VALUES":          Values,
    14  			"MERGE_RECURSIVE": MergeRecursive,
    15  		}))
    16  }