bonzai/set/set_test.go
2022-02-25 21:46:36 -05:00

17 lines
268 B
Go

package set_test
import (
"fmt"
"github.com/rwxrob/bonzai/set"
)
func ExampleMinus() {
s := []string{
"one", "two", "three", "four", "five", "six", "seven",
}
fmt.Println(set.Minus(s, []string{"two", "four", "six"}))
// Output:
// [one three five seven]
}