I wrote:
> [...]
> ghc -O generates basically the following code (use -ddump-simpl to
> see this):
>
> any :: (a -> Bool) -> [a] -> Bool
> any p xs = let go ys = case ys of
Ooops, cut'n'paste error: Insert
[] -> False
here. :-}
> (z:zs) -> case p z of
> False -> go zs
> True -> True
> in go xs
> [...]
Cheers,
Sven
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
- Re: 'any' and 'all' compared with the rest of the Repor... Iavor Diatchki
- Re: 'any' and 'all' compared with the rest of the ... Sven Panne
- Re: 'any' and 'all' compared with the rest of ... Hannah Schroeter
- 'any' and 'all' compared with the rest of the ... Sven Panne
- 'any' and 'all' compared with the rest of the Repo... Jan-Willem Maessen
- Re: 'any' and 'all' compared with the rest of ... Bjorn Lisper
- Re: 'any' and 'all' compared with the rest of the ... Jan-Willem Maessen
- Re: 'any' and 'all' compared with the rest of the ... Marko Schuetz
- Re: 'any' and 'all' compared with the rest of the ... Jan-Willem Maessen
- Re: 'any' and 'all' compared with the rest of ... Marko Schuetz
- Re: 'any' and 'all' compared with the rest of the ... Fergus Henderson
- Re: 'any' and 'all' compared with the rest of ... Marko Schuetz
