Even better

main
Thomas Forgione 7 months ago
parent 5d8e380d74
commit b160cc9789
  1. 2
      elm/Main.elm

@ -60,7 +60,7 @@ modelEmojis model =
Search s ->
Emoji.categories
|> List.map Emoji.getEmojis
|> List.map (List.filter (\x -> String.contains s x.name))
|> List.map (List.filter (\x -> String.contains s x.name || List.any (String.contains s) x.tags))
|> doubleMap (\x -> ( x, distance s x.name ))
|> List.map (List.sortBy Tuple.second)
|> mergeBy Tuple.second

Loading…
Cancel
Save