[Haskell-cafe] Differences in optimisiation with
interactive and comp
bmaxa at hotmail.com
Sat Dec 10 19:33:24 EST 2005
>From: Bulat Ziganshin <bulatz at HotPOP.com>
>Reply-To: Bulat Ziganshin <bulatz at HotPOP.com>
>To: "Branimir Maksimovic" <bmaxa at hotmail.com>
>CC: tomasz.zielonka at gmail.com,
>lemming at henning-thielemann.de,haskell-cafe at haskell.org
>Subject: Re: [Haskell-cafe] Differences in optimisiation with
>interactive and compiled mo
>Date: Sun, 11 Dec 2005 00:42:24 +0300
>Saturday, December 10, 2005, 8:29:09 PM, you wrote:
> >>Can you check this version?
>replace from to = repl
> where repl s | Just remainder <- start_from from s = to ++ repl
> 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
This one is fastest,not much, but is.
So here it goes: your version, then Daniel's, then mine.
Express yourself instantly with MSN Messenger! Download today it's FREE!
More information about the Haskell-Cafe