fuzzy Matching With Continuity
fun <T> fuzzyMatchingWithContinuity(items: Collection<T>, toStringFunction: ToStringFunction<T>, query: String): Collection<FuzzyResult<T>>(source)
Sorts the item with fuzzing matching, the OptionData.MAX_CHOICES most relevant results should appear at the top
Additionally, this removes items which do not start with the query string
Return
A collection of results with the scores of each item
Parameters
items
The items to sort
to String Function
The function to transform an item into a String
query
The query to match items against