Oops, I seem not to have proofread my message. On 1/4/07, J. Garrett Morris <[EMAIL PROTECTED]> wrote:
On 1/4/07, brad clawsie <[EMAIL PROTECTED]> wrote: > s = "abcdefg" > patterns = ["a","b"] > replacements = ["Z","Y"]
I changed the name here so as not to conflict with the replace function. <snip>
You can create the replacing functions using zipWith :: (a -> b -> c) -> [a] -> [b] -> [c] (from the Prelude) as follows: replacers = zipWith replace patterns replacements
This line was previously incorrect. /g _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe