Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Find the intersection of two iterable values

Notifications You must be signed in to change notification settings

BuildingRobotics/go-intersect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

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))
}

About

Find the intersection of two iterable values

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%