[Haskell-cafe] Data.Set subset function?

Graham Klyne gk at ninebynine.org
Wed Jul 21 12:10:23 EDT 2004

I don't see a subset function in Data.Set.  What is the preferred way to 
define this?

I currently have:

   a `subset` b = isEmptySet (a `minusSet` b)

(Hmmm... does library style prefer `subset`, `subsetOf`, `isSubset`, 
`isSubsetOf` ?)


Graham Klyne
For email:

More information about the Haskell-Cafe mailing list