Skip to content

tripokey/elm-fuzzy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

elm-fuzzy

A library for fuzzy string matching written in Elm.

See demo at: http://tripokey.github.io/elm-fuzzy/

See documentation at: http://package.elm-lang.org/packages/tripokey/elm-fuzzy/latest

Basic Usage

Sorting a list:

let
    simpleMatch config separators needle hay =
      match config separators needle hay |> .score
in
    List.sortBy (simpleMatch [] [] "hrdevi") ["screen", "disk", "harddrive", "keyboard", "mouse", "computer"] == ["harddrive","keyboard","disk","screen","computer","mouse"]

About

A library for fuzzy string matching written in Elm

Resources

License

Stars

Watchers

Forks

Packages

No packages published