Data.Set whishes

Ketil Malde ketil+haskell at
Mon Feb 16 10:05:02 EST 2004

Wolfgang Jeltsch <wolfgang at> writes:

>     * subsetOf :: Ord element => Set element -> Set element -> Bool

(Isn't "isSubsetOf" a better name?)  Would

        x `isSubsetOf` y = x `union` y == y

do, or did you want something more efficient?

If I haven't seen further, it is by standing in the footprints of giants

More information about the Libraries mailing list