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 :: (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
fromList :: Context a => (Int, Int) -> [a] -> Matrix amatrices Data.Matrix No documentation available.
fromList :: forall m (v :: Type -> Type) a . Matrix m v a => (Int, Int) -> [a] -> m v amatrices Data.Matrix.Class No documentation available.
fromList :: forall m (v :: Type -> Type) a . Matrix m v a => (Int, Int) -> [a] -> m v amatrices Data.Matrix.Generic No documentation available.
fromList :: Context a => (Int, Int) -> [a] -> Matrix amatrices Data.Matrix.Storable No documentation available.
fromList :: Context a => (Int, Int) -> [a] -> Matrix amatrices Data.Matrix.Unboxed No documentation available.