aboutsummaryrefslogtreecommitdiff
path: root/src/client/Utils/List.elm
blob: f33e1245f6e27c1492e1e77f9ad481597e397205 (plain)
1
2
3
4
5
6
module Utils.List
  ( find
  ) where

find : (a -> Bool) -> List a -> Maybe a
find predicate = List.head << List.filter predicate