5 Jan
2007
5 Jan
'07
3:53 p.m.
Oops, I seem not to have proofread my message. On 1/4/07, J. Garrett Morris <trevion@gmail.com> wrote:
On 1/4/07, brad clawsie <clawsie@fastmail.fm> 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