Discover Packages
github.com/apache/camel-k/v2
pkg
util
sets
package
Version:
v2.3.0
Opens a new window with list of versions in this module.
Published: Apr 2, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Set is a very basic implementation for a Set data structure.
NewSet creates an empty Set.
Union creates a Set from the union of two.
Each traverses the items in the Set, calling the provided function for each
Set member. Traversal will continue until all items in the Set have been
visited, or if the closure returns false.
Has returns true if it contains the item.
IsEmpty returns true if the set has no items.
List returns the list of items of the Set.
func (s *Set ) Merge(another *Set )
Merge with items from another set.
Size returns the number if items in the Set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.