Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/broadwaylamb/stringsearch
A simple algorithm for searching for a string in a collection of strings, based on Swift 5.1 ordered collection diffing
https://github.com/broadwaylamb/stringsearch
Last synced: about 1 month ago
JSON representation
A simple algorithm for searching for a string in a collection of strings, based on Swift 5.1 ordered collection diffing
- Host: GitHub
- URL: https://github.com/broadwaylamb/stringsearch
- Owner: broadwaylamb
- Created: 2020-01-23T13:44:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T12:37:48.000Z (almost 5 years ago)
- Last Synced: 2024-10-16T06:44:33.225Z (3 months ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StringSearch
A simple algorithm for searching for a string in a collection of strings, based on Swift 5.1 [ordered collection diffing](https://github.com/apple/swift-evolution/blob/master/proposals/0240-ordered-collection-diffing.md).
- Produces something like Xcode's code completion matching.
- Not limited to strings, works with any `BidirectionalCollection`.
- Does not depend on anything but the standard library.I'm too lazy to add documentation, but it's simple, you can figure it out yourself.
## Requirements
- Swift 5.1
- iOS 13
- macOS 10.15
- watchOS 6
- tvOS 13
- Any non-Apple platform where you can compile Swift code.