[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-cafe
Subject: Re: [Haskell-cafe] module Crypt_Discordian - code critique requested
From: Henning Thielemann <lemming () henning-thielemann ! de>
Date: 2005-02-23 16:07:37
Message-ID: Pine.LNX.4.44.0502231706380.30974-100000 () peano ! math ! uni-bremen ! de
[Download RAW message or body]
On Wed, 23 Feb 2005, Jacques Carette wrote:
> I would likely write
> > module Foo where
> >
> > vowel_list = "aeiouAEIOU"
> >
> > split_vowels = partition (`elem` vowel_list)
> >
> > tuple_to_list t = fst t ++ snd t
> >
> > remove_spaces = filter (/= ' ')
> >
> > encrypt = List.sort . tuple_to_list . split_vowels . remove_spaces
>
> instead. But I have this feeling that tuple_to_list is probably already in the \
> library, I just missed it.
do you mean
uncurry (++)
?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic