Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/theodesp/bisect

Package bisect implements common bisection algorithms in Go
https://github.com/theodesp/bisect

go sorting

Last synced: about 1 month ago
JSON representation

Package bisect implements common bisection algorithms in Go

Awesome Lists containing this project

README

        

# bisect
[![Travis-CI](https://travis-ci.org/theodesp/bisect.svg)](https://travis-ci.org/theodesp/bisect)
[![GoDoc](https://godoc.org/github.com/theodesp/bisect?status.svg)](http://godoc.org/github.com/theodesp/bisect)
[![Report card](https://goreportcard.com/badge/github.com/theodesp/bisect)](https://goreportcard.com/report/github.com/theodesp/bisect)

Package bisect implements common bisection algorithms.

`go get -u github.com/theodesp/bisect`

## Examples

```go
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](https://godoc.org/github.com/theodesp/bisect).

## 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