[Haskell-beginners] homogeneous value list
luca_ciciriello at hotmail.com
Fri Mar 12 08:27:21 EST 2010
I know, this is a very basic question but I've had some trouble with it.
I've a list and I want to write a function
isHomogeneous :: [String] -> Bool
returning True is all the elements of the list are equals and False otherwise. In my first ugly test I've used a list-comprehension method, but I'm sure that exists a more elegant/short way to obtain the same result.
Thanks in advance for any answer.
Tell us your greatest, weirdest and funniest Hotmail stories
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners