diff options
Diffstat (limited to 'src/client/Utils/List.elm')
-rw-r--r-- | src/client/Utils/List.elm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/Utils/List.elm b/src/client/Utils/List.elm new file mode 100644 index 0000000..f33e124 --- /dev/null +++ b/src/client/Utils/List.elm @@ -0,0 +1,6 @@ +module Utils.List + ( find + ) where + +find : (a -> Bool) -> List a -> Maybe a +find predicate = List.head << List.filter predicate |