Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- choose :: [a] -> Int -> [[a]]
- coupling :: Eq a => (a -> a -> t) -> [a] -> [t]
- genFileNames :: String -> [String]
- replace :: Eq a => (a, a) -> [a] -> [a]
- safeHead :: [a] -> Maybe a
- sample :: (RandomGen g, Num n, Eq n) => g -> n -> [t] -> [t]
- sampleF :: (RandomGen g, Num n) => g -> Rational -> [t] -> [t]
- remElt :: Int -> [a] -> [a]
Documentation
coupling :: Eq a => (a -> a -> t) -> [a] -> [t] Source
The coupling
function produces all possible pairings, and applies the
given function to each
genFileNames :: String -> [String] Source
The genFileNames
function lazily generates filenames of mutants
replace :: Eq a => (a, a) -> [a] -> [a] Source
The replace
function replaces first element in a list given old and new values as a pair
sample :: (RandomGen g, Num n, Eq n) => g -> n -> [t] -> [t] Source
The sample
function takes a random generator and chooses a random sample
subset of given size.