https://github.com/keep94/numsearch
A package to find a pattern within a sequence of digits
https://github.com/keep94/numsearch
Last synced: about 1 month ago
JSON representation
A package to find a pattern within a sequence of digits
- Host: GitHub
- URL: https://github.com/keep94/numsearch
- Owner: keep94
- License: bsd-3-clause
- Created: 2025-09-11T03:12:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-20T03:09:21.000Z (9 months ago)
- Last Synced: 2025-09-20T05:33:27.805Z (9 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
numsearch
=========
A package to find a pattern within a sequence of digits.
While this package is meant to work with the data structures
github.com/keep94/sqrt, it will work with anything that implements the
required interfaces.
## Examples
```golang
package main
import (
"fmt"
"github.com/keep94/numsearch"
"github.com/keep94/sqrt"
)
func main() {
// Find the 0-based position of the first occurrence of "07" within
// Sqrt(3). This prints 8.
fmt.Println(numsearch.First(sqrt.Sqrt(3), numsearch.String("07")))
}
```
More documentation and examples can be found [here](https://pkg.go.dev/github.com/keep94/numsearch).