Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromList :: Ord a => [a] -> MaxQueue apqueue Data.PQueue.Max Constructs a priority queue from an unordered list.
fromList :: Ord a => [a] -> MinQueue apqueue Data.PQueue.Min Constructs a priority queue from an unordered list.
fromList :: Ord k => [(k, a)] -> MaxPQueue k apqueue Data.PQueue.Prio.Max Build a priority queue from the list of (key, value) pairs.
fromList :: Ord k => [(k, a)] -> MinPQueue k apqueue Data.PQueue.Prio.Min Constructs a priority queue from an unordered list.
fromList :: Corecursive (->) t (XNor a) => [a] -> tyaya Yaya.Applied An implementation of toList for Corecursive fixed-points of XNor.
fromList :: (Contiguous arr, Element arr a) => [a] -> arr acontiguous Data.Primitive.Contiguous Convert a list into an array.
fromList :: Ord k => [(k, v)] -> Map k vdhall Dhall.Map Create a Map from a list of key-value pairs
>>> fromList [("B",1),("A",2)] -- The map preserves order fromList [("B",1),("A",2)] >>> fromList [("A",1),("A",2)] -- For duplicates, later values take precedence fromList [("A",2)]
Note that this handling of duplicates means that fromList is not a monoid homomorphism:>>> fromList [(1, True)] <> fromList [(1, False)] fromList [(1,True)] >>> fromList ([(1, True)] <> [(1, False)]) fromList [(1,False)]
fromList :: Ord a => [a] -> Set adhall Dhall.Set Convert a list to a Set, remembering the element order
fromList :: [(Expr, a)] -> Triexpr aexpress Data.Express.Triexpr Constructs a Triexpr form a list of key Exprs and associated values.
fromList :: IsList l => [Item l] -> lfoundation Foundation The fromList function constructs the structure l from the given list of Item l