Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Relation4 a b c d = Relation4 {}
- size :: (Ord a, Ord b, Ord c, Ord d) => Relation4 a b c d -> Int
- toNestedList :: Relation4 a b c d -> [(a, (b, (c, d)))]
- toList :: Relation4 a b c d -> [(a, b, c, d)]
- empty :: (Ord a, Ord b, Ord c, Ord d) => Relation4 a b c d
- null :: Relation4 a b c d -> Bool
- fromList :: (Ord a, Ord b, Ord c, Ord d) => [(a, b, c, d)] -> Relation4 a b c d
- filter :: (Ord a, Ord b, Ord c, Ord d) => ((a, b, c, d) -> Bool) -> Relation4 a b c d -> Relation4 a b c d
- memberD13 :: (Ord a, Ord c) => a -> c -> Relation4 a b c d -> Bool
- selectD3 :: (Ord a, Ord b, Ord c, Ord d) => c -> Relation4 a b c d -> Relation4 a b c d
- selectD34 :: (Ord a, Ord b, Ord c, Ord d) => c -> d -> Relation4 a b c d -> Relation4 a b c d
- restrict34d12 :: (Ord a, Ord b, Ord c, Ord d) => (c, d) -> Relation4 a b c d -> Relation a b
- keys :: Relation4 a b c d -> (Set a, Set b, Set c, Set d)
- lookupD1 :: (Ord a, Ord b, Ord c, Ord d) => a -> Relation4 a b c d -> Relation3 b c d
- lookupD2 :: (Ord a, Ord b, Ord c, Ord d) => b -> Relation4 a b c d -> Relation3 a c d
- d1set :: Ord a => Relation4 a b c d -> Set a
- d12 :: (Ord a, Ord b) => Relation4 a b c d -> Relation a b
- d13 :: (Ord a, Ord c) => Relation4 a b c d -> Relation a c
- d34 :: (Ord c, Ord d) => Relation4 a b c d -> Relation c d
- d124 :: (Ord a, Ord b, Ord c, Ord d) => Relation4 a b c d -> Relation3 a b d
- d234 :: (Ord a, Ord b, Ord c, Ord d) => Relation4 a b c d -> Relation3 b c d
- d12s :: (Ord a, Ord b) => Relation4 a b c d -> [(a, b)]
- d3s :: Relation4 a b c d -> Set c
- d4s :: Relation4 a b c d -> Set d
- insert :: (Ord a, Ord b, Ord c, Ord d) => a -> b -> c -> d -> Relation4 a b c d -> Relation4 a b c d
- delete :: (Ord a, Ord b, Ord c, Ord d) => a -> b -> c -> d -> Relation4 a b c d -> Relation4 a b c d
- mapD2 :: (Ord a, Ord b, Ord b', Ord c, Ord d) => (b -> b') -> Relation4 a b c d -> Relation4 a b' c d
- mapD2Monotonic :: (Ord a, Ord b, Ord b', Ord c, Ord d) => (b -> b') -> Relation4 a b c d -> Relation4 a b' c d
- insertAll :: Foldable f => Ord a => Ord b => Ord c => Ord d => f (a, b, c, d) -> Relation4 a b c d -> Relation4 a b c d
Documentation
data Relation4 a b c d Source #
Instances
(Ord a, Ord b, Ord c, Ord d) => Monoid (Relation4 a b c d) Source # | |
(Ord a, Ord b, Ord c, Ord d) => Semigroup (Relation4 a b c d) Source # | |
(Show a, Show b, Show c, Show d) => Show (Relation4 a b c d) Source # | |
(Eq a, Eq b, Eq c, Eq d) => Eq (Relation4 a b c d) Source # | |
(Ord a, Ord b, Ord c, Ord d) => Ord (Relation4 a b c d) Source # | |
Defined in Unison.Util.Relation4 compare :: Relation4 a b c d -> Relation4 a b c d -> Ordering # (<) :: Relation4 a b c d -> Relation4 a b c d -> Bool # (<=) :: Relation4 a b c d -> Relation4 a b c d -> Bool # (>) :: Relation4 a b c d -> Relation4 a b c d -> Bool # (>=) :: Relation4 a b c d -> Relation4 a b c d -> Bool # max :: Relation4 a b c d -> Relation4 a b c d -> Relation4 a b c d # min :: Relation4 a b c d -> Relation4 a b c d -> Relation4 a b c d # |
toNestedList :: Relation4 a b c d -> [(a, (b, (c, d)))] Source #
filter :: (Ord a, Ord b, Ord c, Ord d) => ((a, b, c, d) -> Bool) -> Relation4 a b c d -> Relation4 a b c d Source #
selectD34 :: (Ord a, Ord b, Ord c, Ord d) => c -> d -> Relation4 a b c d -> Relation4 a b c d Source #
restrict34d12 :: (Ord a, Ord b, Ord c, Ord d) => (c, d) -> Relation4 a b c d -> Relation a b Source #
d124 :: (Ord a, Ord b, Ord c, Ord d) => Relation4 a b c d -> Relation3 a b d Source #
Project out a relation that only includes the 1st, 2nd, and 4th dimensions.
d234 :: (Ord a, Ord b, Ord c, Ord d) => Relation4 a b c d -> Relation3 b c d Source #
Project out a relation that only includes the 2nd, 3rd, and 4th dimensions.
insert :: (Ord a, Ord b, Ord c, Ord d) => a -> b -> c -> d -> Relation4 a b c d -> Relation4 a b c d Source #
delete :: (Ord a, Ord b, Ord c, Ord d) => a -> b -> c -> d -> Relation4 a b c d -> Relation4 a b c d Source #
mapD2 :: (Ord a, Ord b, Ord b', Ord c, Ord d) => (b -> b') -> Relation4 a b c d -> Relation4 a b' c d Source #