[Haskell-beginners] Re: Empty list Exception
Chicão Fernandes Junior
xykaumjunior at gmail.com
Sun May 24 22:14:42 EDT 2009
Thanks everyone, for the answers.
I didn't knew the *elem* function. That will make my life easier.
For the sake of simplicity, I changed the code to a shorter
*userRegistration* function, eliminating the *checkUser* function:
userRegistration user list
> | elem user list = list
> | otherwise = user:list
>
It did worked fine.
I'm glad that I can count with this list in my learning process.
Thanks again.
--
____________________________________________________________________________
Francisco Borges "Chicão" Junior
..........................................................................................
http://pedepinico.blogspot.com
..........................................................................................
"Quem de boa vontade carrega o difícil, também carrega o menos difícil..."
Lao Tsé - Tao Te Ching
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090524/e07ea037/attachment-0001.html
More information about the Beginners
mailing list