Skip to content

justincrow/elm-simple-fuzzy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple package for filtering strings.

Example

filterSomeObjects =
    let
        languages =
            [ { name = "Elm" }
            , { name = "Ruby" }
            , { name = "Rust" }
            , { name = "Haskell" }
            , { name = "javascript" }
            , { name = "English" }
            ]
    in
        Simple.Fuzzy.filter .name "el" languages

gives:

    [ { name = "Elm" }
    , { name = "Haskell"}
    , { name = "English"}
    ]