[Haskell-cafe] Haskell wiki: most popular pages
Tim Walkenhorst
tim.walkenhorst at gmx.de
Fri Aug 18 08:33:16 EDT 2006
Oh my lord, I love how my newreader obfuscates my posts.
>
> = span
> <http://undergraduate.csse.uwa.edu.au/units/230.301/lectureNotes/tourofprelude.html#span>
> p' xs
> where
> p' x = not
> <http://undergraduate.csse.uwa.edu.au/units/230.301/lectureNotes/tourofprelude.html#not>
> (p x)
>
= span p' xs
where
p' x = not (p x)
> could be written as:
>
> break p = span (not . p)
>
> or:
>
> and xs = foldr
> <http://undergraduate.csse.uwa.edu.au/units/230.301/lectureNotes/tourofprelude.html#foldr>
> (&&) True xs
and xs = foldr (&&) True xs
>
> as:
> and = foldr
> <http://undergraduate.csse.uwa.edu.au/units/230.301/lectureNotes/tourofprelude.html#foldr>
> (&&) True
>
and = foldr (&&) True
Sorry,
Tim
More information about the Haskell-Cafe
mailing list