fuzzy

Fuzzy search

fuzzy
(
string[] db
)

Parameters

db string[]

Array of string containing the search list.

Examples

fuzzy(["foo", "bar", "baz"])("br");
// => [FuzzyResult("bar", 1, RedBlackTree([0, 2])), FuzzyResult("baz", 0.592593, RedBlackTree([0])), FuzzyResult("foo", 0, RedBlackTree([]))]

Meta