[Haskell-cafe] module Crypt_Discordian - code critique requested
Arthur van Leeuwen
arthurvl at cs.uu.nl
Wed Feb 23 02:53:18 EST 2005
On Wed, Feb 23, 2005 at 08:46:23AM +0100, Arthur van Leeuwen wrote:
> On Wed, Feb 23, 2005 at 12:27:19AM +0000, Terrence Brannon wrote:
[snip, encryptia discordia]>
> How about
>
> > module CryptDiscordian
> > where
> >
> > import List
> >
> > vowels = "aeiouAEIOU"
> > isVowel = (flip elem) vowel_list
> >
> > moveVowels xs = filter (not . isSpace) $
> > (filter (not . isVowel) xs ++ filter (is_vowel) xs)
> >
> > encryptDiscordian xs = map chr $ sort $ map (ord . toLower) $
> > reverse $ moveVowels xs
Which won't work, as it lacks an import Char.
Doei, Arthur. (Still waking up, apparently)
--
/\ / | arthurvl at cs.uu.nl | Work like you don't need the money
/__\ / | A friend is someone with whom | Love like you have never been hurt
/ \/__ | you can dare to be yourself | Dance like there's nobody watching
More information about the Haskell-Cafe
mailing list