Safe Haskell | None |
---|---|
Language | Haskell98 |
MagicHaskeller.Classification
Documentation
arbitraries :: Arbitrary a => [a] Source
nubSortByBot :: (a -> a -> Maybe Ordering) -> [a] -> [a] Source
class Eq rel => Relation rel where Source
Minimal complete definition
(/), appendWithBy, diffBy, cEQ
Methods
fromListBy :: (k -> k -> rel) -> [k] -> [k] Source
fromListByDB :: (k -> k -> rel) -> [(k, Int)] -> [(k, Int)] Source
(/) :: [k] -> (k -> k -> rel) -> [[k]] Source
appendWithBy :: (k -> k -> k) -> (k -> k -> rel) -> [k] -> [k] -> [k] Source
appendQuotientsBy :: Relation rel => (k -> k -> rel) -> [[k]] -> [[k]] -> [[k]] Source
appendRepresentativesBy :: Relation rel => (k -> k -> rel) -> [k] -> [k] -> [k] Source
unionWithBy :: (a -> a -> a) -> (a -> a -> Bool) -> [a] -> [a] -> [a] Source
class Filtrable a where Source
Methods
filt :: SStrategy m => (Int -> Int) -> m (a, e) -> m e Source
filtFun :: (SStrategy m, Arbitrary b) => (Int -> Int) -> m (b -> a, e) -> m e Source
unsafeFilt :: SStrategy m => Maybe Int -> (Int -> Int) -> m (a, e) -> m e Source
unsafeFiltFun :: (SStrategy m, Arbitrary b) => Maybe Int -> (Int -> Int) -> m (b -> a, e) -> m e Source
filtUnary :: (Arbitrary a, Relation r, SStrategy f) => (k -> k -> r) -> (Int -> Int) -> f (a -> k, b) -> f b Source
cumulativeRepresentatives :: Relation rel => [a -> a -> rel] -> Matrix a -> Matrix a Source
representatives :: Relation rel => [a -> a -> rel] -> Matrix a -> Matrix a Source
unscanlByList :: Relation r => [k -> k -> r] -> Matrix k -> Matrix k Source
sfilterMx :: Relation r => (k -> k -> r) -> (Int -> Int) -> Matrix ([k], e) -> Matrix ([k], e) Source
liftRelation :: Relation r => (k -> k -> r) -> Int -> ([k], e) -> ([k], e) -> r Source
sfilterDB :: Relation rel => (k -> k -> rel) -> (Int -> Int) -> DBound ([k], e) -> DBound ([k], e) Source
cumulativeQuotients :: Relation rel => [k -> k -> rel] -> Matrix k -> Matrix [k] Source