set

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 5 Imported by: 1

README

set Module

This module makes string sets based on k8s.io/apimachinery available in Rudi.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Functions = rudi.Functions{
		"new-set":     rudi.NewFunctionBuilder(newEmptySetFunction, newSetFunction).WithDescription("create a set filled with the given values").Build(),
		"new-key-set": rudi.NewFunctionBuilder(keySetFunction).WithDescription("create a set filled with the keys of an object").Build(),

		"set-delete":       rudi.NewFunctionBuilder(setDeleteFunction).WithDescription("returns a copy of the set with the given values removed from it").Build(),
		"set-diff":         rudi.NewFunctionBuilder(setDifferenceFunction).WithDescription("returns the difference between two sets").Build(),
		"set-insert":       rudi.NewFunctionBuilder(setInsertFunction).WithDescription("returns a copy of the set with the newly added values inserted to it").Build(),
		"set-intersection": rudi.NewFunctionBuilder(setIntersectionFunction).WithDescription("returns the insersection of two sets").Build(),
		"set-list":         rudi.NewFunctionBuilder(setListFunction).WithDescription("returns a sorted vector containing the values of the set").Build(),
		"set-size":         rudi.NewFunctionBuilder(setLenFunction).WithDescription("returns the number of values in the set").Build(),
		"set-symdiff":      rudi.NewFunctionBuilder(setSymmetricDifferenceFunction).WithDescription("returns the symmetric difference between two sets").Build(),
		"set-union":        rudi.NewFunctionBuilder(setUnionFunction).WithDescription("returns the union of two or more sets").Build(),

		"set-eq?":          rudi.NewFunctionBuilder(setEqualFunction).WithDescription("returns true if two sets hold the same values").Build(),
		"set-has?":         rudi.NewFunctionBuilder(setHasFunction).WithDescription("returns true if the set contains _all_ of the given values").Build(),
		"set-has-any?":     rudi.NewFunctionBuilder(setHasAnyFunction).WithDescription("returns true if the set contains _any_ of the given values").Build(),
		"set-superset-of?": rudi.NewFunctionBuilder(setIsSupersetFunction).WithDescription("returns true if the other set is a superset of the base set").Build(),
	}
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL