p7/Test.hs
2018-06-22 15:58:20 +12:00

5 lines
90 B
Haskell

cleanMaybe :: Maybe String -> [String]
cleanMaybe (Just x) = [x]
cleanMaybe Nothing = []