can anyone aee why it doesnt work? im trying to make the function replace ever letter on the end of the word with o (if its a 'e' or a 'i'), i've tried to start it off by checking if the tail is empty, and if the head of the word is e oe i, but it doesnt work, any ideas?Code:type Word = String italplural :: Word -> Word italplural (x:xs) | (length(xs) == 0) = if (x == 'e') || (x == 'i') then x == 'o'




Reply With Quote