RosettaCodeData/Task/Binary_strings/Haskell/binary_strings-3.hs
Ingy döt Net 80737d5a6a new tasks
2013-04-09 00:46:50 -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