Skip to content

Mungrel/set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set CI

Simple generic set implementation

Usage

// Empty set
s := set.New[string]()

s.Add("apple", "banana", "orange")

// Initialise with elements
s := set.New(1, 2, 3)

if s.Contains(1) {
    ...
}

if s.ContainsAll(1, 2, 3) {
    ...
}

data, _ := json.Marshal(s)
fmt.Println(string(data)) // [1,2,3]

About

Simple set implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages