Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Set

CircleCI branch License GitHub tag (latest SemVer)

Set is a threadsafe abstract data structure library for representing collection of distinct values, without any particular order.

Examples

package main

import (
    "fmt"
	
    "github.com/trivigy/set"
)

func main() {
    m := set.New("b", "b", "c", "d")
    fmt.Println(m.Contains("b", "c", "d"))
	
    m1 := set.New("b", "b", "c", "d")
    m2 := set.New("c", "b", "d", "b")
    fmt.Println(m1.Equals(m2))
}

About

Implementation of the set data structure

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages