[Haskell-cafe] Bloom Filter

Josef Svenningsson josef.svenningsson at gmail.com
Tue May 1 06:24:59 EDT 2007


Hi,

Just a small comment on one of the comments.

On 5/1/07, ajb at spamcop.net <ajb at spamcop.net> wrote:
> Also, rather than this:
>
>     add :: Bloom a -> a -> Bloom a
>
> a better argument order is this:
>
>     insert :: a -> Bloom a -> Bloom a
>
> That way, you can use it with foldr.
>
Hmmm. If you want to create a Bloom using a fold wouldn't it make more
sense to use foldl'? I think the argument order is fine.

Cheers,

Josef


More information about the Haskell-Cafe mailing list