We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a47fce0 commit 402cec4Copy full SHA for 402cec4
lib/absinthe/utils/suggestion.ex
@@ -9,7 +9,7 @@ defmodule Absinthe.Utils.Suggestion do
9
def sort_list(suggestions, target, threshold \\ @jaro_threshold)
10
11
def sort_list(suggestions, target, threshold) do
12
- Enum.map(suggestions, fn s -> {s, String.jaro_distance(s, target)} end)
+ Enum.map(suggestions, fn s -> IO.inspect({s, String.jaro_distance(s, target)}) end)
13
|> Enum.filter(fn {_, x} -> x >= threshold end)
14
|> Enum.sort_by(fn {_, x} -> x end)
15
|> Enum.map(fn {s, _} -> s end)
0 commit comments