absinthe v1.4.16 Absinthe.Utils.Suggestion View Source

Link to this section Summary

Functions

Sort a list of suggestions by Jaro distance to a target string, supporting a cut-off threshold

Link to this section Functions

Link to this function sort_list(suggestions, target, threshold \\ 0.7) View Source
sort_list([String.t()], String.t(), float()) :: [String.t()]

Sort a list of suggestions by Jaro distance to a target string, supporting a cut-off threshold.