Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromList :: (Eq k, Hashable k) => [(k, a)] -> MonoidalHashMap k amonoidal-containers Data.HashMap.Monoidal O(n*log n). Construct a map with the supplied mappings. If the list contains duplicate mappings, values will be replaced.
fromList :: [(Int, a)] -> MonoidalIntMap amonoidal-containers Data.IntMap.Monoidal No documentation available.
fromList :: [(Int, a)] -> MonoidalIntMap amonoidal-containers Data.IntMap.Monoidal.Strict No documentation available.
fromList :: Ord k => [(k, a)] -> MonoidalMap k amonoidal-containers Data.Map.Monoidal No documentation available.
fromList :: Ord k => [(k, a)] -> MonoidalMap k amonoidal-containers Data.Map.Monoidal.Strict No documentation available.
fromList :: Ord k => [(k, a)] -> MultiMap k amultimap Data.MultiMap O(n*log n) Create a multimap from a list of key/value pairs.
fromList xs == foldr (uncurry insert) empty
fromList :: NonEmpty (Key, a) -> NEIntMap anonempty-containers Data.IntMap.NonEmpty O(n*log n). Build a non-empty map from a non-empty list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromList ((5,"a") :| [(3,"b"), (5, "c")]) == fromList ((5,"c") :| [(3,"b")]) fromList ((5,"c") :| [(3,"b"), (5, "a")]) == fromList ((5,"a") :| [(3,"b")])
fromList :: NonEmpty (Key, a) -> NEIntMap anonempty-containers Data.IntMap.NonEmpty.Internal O(n*log n). Build a non-empty map from a non-empty list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromList ((5,"a") :| [(3,"b"), (5, "c")]) == fromList ((5,"c") :| [(3,"b")]) fromList ((5,"c") :| [(3,"b"), (5, "a")]) == fromList ((5,"a") :| [(3,"b")])
fromList :: NonEmpty Key -> NEIntSetnonempty-containers Data.IntSet.NonEmpty O(n*log n). Create a set from a list of elements.
fromList :: NonEmpty Key -> NEIntSetnonempty-containers Data.IntSet.NonEmpty.Internal O(n*log n). Create a set from a list of elements.