finnvoor / FindFaster

Quickly find matches in a Swift collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support `Collection`, not just `BidirectionalCollection`

finnvoor opened this issue · comments

Currently this is the only line requiring BidirectionalCollection:
https://github.com/Finnvoor/FindFaster/blob/e1c75578e516e1613d60550b4e57407a3f91509f/Sources/FindFaster/BidirectionalCollection%2BfastSearch.swift#L51
It should be possible to get all the correct indices without traversing backwards, though I'm not sure if there's much practical use for this.