[Haskell-cafe] Differences in optimisiation with interactive
and compiled mo
Bulat Ziganshin
bulatz at HotPOP.com
Sat Dec 10 16:42:24 EST 2005
Hello Branimir,
Saturday, December 10, 2005, 8:29:09 PM, you wrote:
>>Can you check this version?
and this:
replace from to = repl
where repl s | Just remainder <- start_from from s = to ++ repl remainder
repl (c:cs) = c : repl cs
repl [] = []
start_from (x:xs) (y:ys) | x==y = start_from xs ys
start_from [] str = Just str
start_from _ _ = Nothing
--
Best regards,
Bulat mailto:bulatz at HotPOP.com
More information about the Haskell-Cafe
mailing list