
4 Oct
2009
4 Oct
'09
12:05 p.m.
Hi, I am now writing a function that replaces vowels with the letter x. eg.put in a string "help" and out comes hxlp. I tried this: f x = case x of {'a' -> 'x';'e' -> 'x';'i' -> 'x';'o' -> 'x';'u' -> 'x';_ -> x} but this wont work on strings, only on the individual letters. Any direction would be very welcome. Yours john