View Source Absinthe.Utils.Suggestion (absinthe v1.7.5)

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
@spec 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.