
5 Jan
2007
5 Jan
'07
2:53 a.m.
Oops, I seem not to have proofread my message.
On 1/4/07, J. Garrett Morris
On 1/4/07, brad clawsie
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