{"id":16086533,"url":"https://github.com/gammazero/eytzinger","last_synced_at":"2025-04-05T14:41:31.478Z","repository":{"id":57705172,"uuid":"499593215","full_name":"gammazero/eytzinger","owner":"gammazero","description":"Eytzinger binary search","archived":false,"fork":false,"pushed_at":"2022-06-03T18:32:44.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T11:12:31.315Z","etag":null,"topics":["binary-search","eytzinger-binary-search"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gammazero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-03T17:19:14.000Z","updated_at":"2025-02-02T20:01:30.000Z","dependencies_parsed_at":"2022-08-24T14:57:16.190Z","dependency_job_id":null,"html_url":"https://github.com/gammazero/eytzinger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammazero%2Feytzinger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammazero%2Feytzinger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammazero%2Feytzinger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammazero%2Feytzinger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammazero","download_url":"https://codeload.github.com/gammazero/eytzinger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353679,"owners_count":20925324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-search","eytzinger-binary-search"],"created_at":"2024-10-09T13:13:31.704Z","updated_at":"2025-04-05T14:41:31.447Z","avatar_url":"https://github.com/gammazero.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eytzinger\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/gammazero/eytzinger)](https://pkg.go.dev/github.com/gammazero/eytzinger)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nEytzinger binary search, minimalistic implementation.\n\nPackage eytzinger implements Eytzinger Binary Search, using generics to operate on any [ordered](https://pkg.go.dev/golang.org/x/exp/constraints#Ordered) type.\n\n## Installation\n\n```\n$ go get github.com/gammazero/eytzinger\n```\n\n## Example\n```go\na := make([]int, 100)\nfor i := 0; i \u003c len(a); i++ {\n    a[i] = i\n}\n\n// Sort slice into Eytzinger order.\neytzinger.Sort(a)\n\n// Find some numbers.\nfor _, find := range []int{13, 17, 19, 23, 29, 37, 73} {\n    index := eytzinger.Search(a, find)\n    fmt.Println(find, \"is at index\", index)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammazero%2Feytzinger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammazero%2Feytzinger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammazero%2Feytzinger/lists"}