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.
-
contiguous Data.Primitive.Contiguous Given an Int that is representative of the length of the list, convert the list into a mutable array of the given length. Note: calls error if the given length is incorrect.
fromListN :: (Contiguous arr, Element arr a) => Int -> [a] -> arr acontiguous Data.Primitive.Contiguous Given an Int that is representative of the length of the list, convert the list into a mutable array of the given length. Note: calls error if the given length is incorrect.
fromListWithKey :: Ord k => (k -> v -> v -> v) -> [(k, v)] -> Map k vdhall Dhall.Map Create a Map from a list of key-value pairs with a combining function.
>>> fromListWithKey (\k v1 v2 -> k ++ v1 ++ v2) [("B","v1"),("A","v2"),("B","v3")] fromList [("B","Bv3v1"),("A","v2")]
fromListN :: IsList l => Int -> [Item l] -> lfoundation Foundation The fromListN function takes the input list's length and potentially uses it to construct the structure l more efficiently compared to fromList. If the given number does not equal to the input list's length the behaviour of fromListN is not specified.
fromListN (length xs) xs == fromList xs
fromLists :: Context a => [[a]] -> Matrix amatrices Data.Matrix O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
fromLists :: forall m (v :: Type -> Type) a . Matrix m v a => [[a]] -> m v amatrices Data.Matrix.Class O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
fromLists :: forall m (v :: Type -> Type) a . Matrix m v a => [[a]] -> m v amatrices Data.Matrix.Generic O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
fromLists :: forall m (v :: Type -> Type) a . Matrix m v a => [[a]] -> m v amatrices Data.Matrix.Sparse.Generic O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
fromLists :: Context a => [[a]] -> Matrix amatrices Data.Matrix.Storable O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
fromLists :: Context a => [[a]] -> Matrix amatrices Data.Matrix.Unboxed O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix