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 (++)
 ?

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to