UMinho Haskell Libraries (1.0)ContentsIndex
Data.SetExtras
Portability experimental
Stability experimental
Maintainer Joćo Ferreira, Alexandra Mendes
Contents
Sets' basic functions
File IO
Description
Extra functions to use with Sets
Synopsis
filterSet :: Ord a => (a -> Bool) -> Set a -> Set a
dunion :: Ord a => Set (Set a) -> Set a
readFile_Set :: (Read a, Ord a, Show c) => FilePath -> (Set a -> c) -> IO c
interact_Set :: (Read a, Ord a, Show c) => FilePath -> FilePath -> (Set a -> c) -> IO ()
Sets' basic functions
filterSet :: Ord a => (a -> Bool) -> Set a -> Set a
Given a predicate p and a set, yields a set whose elements validate p.
dunion :: Ord a => Set (Set a) -> Set a
Given a set of sets ss, the resulting set is the union of all the elements (these are sets themselves) of ss, i.e. it contains all the elements of all the sets of ss.
File IO
readFile_Set :: (Read a, Ord a, Show c) => FilePath -> (Set a -> c) -> IO c
Applies a given function to a set read from a given file.
interact_Set :: (Read a, Ord a, Show c) => FilePath -> FilePath -> (Set a -> c) -> IO ()
Applies readFile_Set and writes the result in a given file.
Produced by Haddock version 0.6