Hoogle Search

Within LTS Haskell 24.37 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toList :: MultiMap m k v => m k v -> [(k, Set v)]

    monoidmap-examples Data.MonoidMap.Examples.MultiMap

    Converts a multimap to a list of key to value-set mappings. Removing empty sets from the output list does not affect the result:

    toList ≡ filter ((/= Set.empty) . snd) . toList
    
    The resulting list can be used to reconstruct the original multimap:
    fromList . toList ≡ id
    

  2. fromList :: MultiMap m k v => [(k, Set v)] -> m k v

    monoidmap-examples Data.MonoidMap.Examples.MultiMap.Class

    Constructs a multimap from a list of key to value set mappings. Removing empty sets from the input list does not affect the result:

    fromList ≡ fromList . filter ((/= Set.empty) . snd)
    

  3. toList :: MultiMap m k v => m k v -> [(k, Set v)]

    monoidmap-examples Data.MonoidMap.Examples.MultiMap.Class

    Converts a multimap to a list of key to value-set mappings. Removing empty sets from the output list does not affect the result:

    toList ≡ filter ((/= Set.empty) . snd) . toList
    
    The resulting list can be used to reconstruct the original multimap:
    fromList . toList ≡ id
    

  4. fromList :: Ord a => [(a, Natural)] -> MultiSet a

    monoidmap-examples Data.MonoidMap.Examples.MultiSet

    No documentation available.

  5. toList :: MultiSet a -> [(a, Natural)]

    monoidmap-examples Data.MonoidMap.Examples.MultiSet

    No documentation available.

  6. fromFlatList :: (Ord k1, Ord k2, MonoidNull v) => [((k1, k2), v)] -> NestedMonoidMap k1 k2 v

    monoidmap-examples Data.MonoidMap.Examples.NestedMonoidMap

    No documentation available.

  7. fromNestedList :: (Ord k1, Ord k2, MonoidNull v) => [(k1, [(k2, v)])] -> NestedMonoidMap k1 k2 v

    monoidmap-examples Data.MonoidMap.Examples.NestedMonoidMap

    No documentation available.

  8. toFlatList :: (Ord k1, Ord k2, MonoidNull v) => NestedMonoidMap k1 k2 v -> [((k1, k2), v)]

    monoidmap-examples Data.MonoidMap.Examples.NestedMonoidMap

    No documentation available.

  9. toNestedList :: (Ord k1, Ord k2, MonoidNull v) => NestedMonoidMap k1 k2 v -> [(k1, [(k2, v)])]

    monoidmap-examples Data.MonoidMap.Examples.NestedMonoidMap

    No documentation available.

  10. fromGroupList :: (Collection c, Monoid (c v), Ord k) => [Group k (c v)] -> Multimap c k v

    more-containers Data.Multimap

    O(m) Builds a multimap from already grouped collections.

Page 207 of many | Previous | Next