We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52a0fd commit d41e12aCopy full SHA for d41e12a
Data/HashMap/Internal.hs
@@ -2229,7 +2229,7 @@ toList :: HashMap k v -> [(k, v)]
2229
toList t = Exts.build (\ c z -> foldrWithKey (curry c) z t)
2230
{-# INLINE toList #-}
2231
2232
--- | \(O(n)\) Construct a map with the supplied mappings. If the list
+-- | \(O(n \log n)\) Construct a map with the supplied mappings. If the list
2233
-- contains duplicate mappings, the later mappings take precedence.
2234
fromList :: (Eq k, Hashable k) => [(k, v)] -> HashMap k v
2235
fromList = List.foldl' (\ m (k, v) -> unsafeInsert k v m) empty
0 commit comments