Skip to content

theodesp/bisect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bisect

Travis-CI
GoDoc Report card

Package bisect implements common bisection algorithms.

go get -u github.com/theodesp/bisect

Examples

package main

import (
	"github.com/theodesp/bisect"
	"fmt"
)

func main()  {
	var ints bisect.IntSlice
	for i:=0;i<10;i += 2 {
		ints = append(ints, i)
	}

	ints.InsortLeft(-1)
	ints.InsortRight(16)

	fmt.Println(ints) // [16 -1 0 2 4 6 8]
}

Read the package documentation for more information.

Contributing

We welcome pull requests, bug fixes and issue reports. Before proposing a change, please discuss your change by raising an issue.

License

Copyright © 2017 Theo Despoudis MIT license

About

Package bisect implements common bisection algorithms in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published