Absinthe.Utils.Suggestion (absinthe v1.5.4) 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

Specs

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.