Skip to content
Find the intersection of two iterable values
Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml add travis (#6) Oct 8, 2019
Readme.md add travis (#6) Oct 8, 2019
intersect.go Return arrays/slices on each call (#5) Oct 8, 2019
intersect_test.go Return arrays/slices on each call (#5) Oct 8, 2019

Readme.md

go-intersect

Find the intersection of two iterable values.

This library provides multiple implementations which each have their strong and weak points.

Read the docs.

Build Status

Installation

$ go get github.com/juliangruber/go-intersect

Example

import "github.com/juliangruber/go-intersect"
import "fmt"

func main() {
  a := []int{1, 2, 3}
  b := []int{2, 3, 4}
  fmt.Println(intersect.Simple(a, b))
}
You can’t perform that action at this time.