Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromListN :: Steppable (->) t (XNor a) => Int -> [a] -> tyaya Yaya.Applied An implementation of fromListN for Steppable fixed-points of XNor. This should return an empty structure if the Int is negative. If the target structure isn’t Steppable or the target structure is Corecursive (i.e., unsafeFromList isn’t used), then the default definition for fromListN should suffice.
-
contiguous Data.Primitive.Contiguous Convert a list into a mutable array of the given length.
-
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