MCPcopy
hub / github.com/minio/minio-go / ApplyFunc

Method ApplyFunc

pkg/set/stringset.go:92–94  ·  view source on GitHub ↗

ApplyFunc - returns new set containing each value processed by 'applyFn'. A 'applyFn' should accept element in a set as a argument and return a processed string. The function can do any logic to return a processed string.

(applyFn func(string) string)

Source from the content-addressed store, hash-verified

90// a processed string. The function can do any logic to return a processed
91// string.
92func (set StringSet) ApplyFunc(applyFn func(string) string) StringSet {
93 return StringSet(Set[string](set).ApplyFunc(applyFn))
94}
95
96// Equals - checks whether given set is equal to current set or not.
97func (set StringSet) Equals(sset StringSet) bool {

Callers 1

removeStatementsFunction · 0.95

Calls 1

StringSetTypeAlias · 0.85

Tested by

no test coverage detected