ref: 145bf59410553a7f9d08db7319f68635bb4132af
parent: d080a795128be66f46cd550b3444ac6f8f6677d3
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Thu Feb 15 09:58:12 EST 2024
Add isNothing
--- a/lib/Data/Maybe.hs
+++ b/lib/Data/Maybe.hs
@@ -79,6 +79,10 @@
isJust Nothing = False
isJust (Just _) = True
+isNothing :: forall a . Maybe a -> Bool
+isNothing Nothing = True
+isNothing (Just _) = False
+
mapMaybe :: forall a b . (a -> Maybe b) -> [a] -> [b]
mapMaybe _ [] = []
mapMaybe f (a:as) =
--
⑨