[Haskell-cafe] Differences in optimisiation with interactive and
tomasz.zielonka at gmail.com
Sat Dec 10 12:14:58 EST 2005
On Sat, Dec 10, 2005 at 04:14:20PM +0000, Branimir Maksimovic wrote:
> Nice code.
But incorrect. I have broken it when refactoring :-/
Here is the correct version:
replace2 src dst = repl
repl input | src `isPrefixOf` input = dst ++ repl (drop (length src) input)
repl (x:xs) = x : repl xs
repl  = 
> But it takes lot of ram (1GB is not enough )and can't execute my test.
Can you check this version?
I am searching for a programmer who is good at least in some of
[Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland
More information about the Haskell-Cafe