RosettaCodeData/Task/Binary-strings/Haskell/binary-strings-3.hs
Ingy döt Net 86c034bb8b new files
2013-04-10 12:38:42 -07:00

8 lines
213 B
Haskell

{- As strings are equivalent to lists
of characters in Haskell, test and
see if the given string is an empty list -}
strIsEmpty :: String -> Bool
strIsEmpty x =
if x == []
then True
else False