
Hi all, This is just a request for comment - I've written a short Haskell program, intended to demonstrate some of the basic features of the language (how to create a data structure, transform it, and run a user interaction loop). I would like to know if there are any obvious respects in which this program could be simplified, clarified or made more idiomatic. The code may be found here: http://codepoetics.com/code/pangolin.hs thanks, Dominic

On 2004 December 29 Wednesday 19:13, Dominic Fox wrote:
any obvious respects in which this program could be simplified, clarified or made more idiomatic.
isYes = `elem` ["y", "yes", "Y", "YES"] withArticle fullString@(x:xs) = (if x `elem` "aeiou" then "an " else "a ") ++ fullString withArticle [] = "" -- in case of empty input
participants (4)
-
Dominic Fox
-
Scott Turner
-
Tomasz Zielonka
-
Tristan Wibberley