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.

  1. fromListN :: Steppable (->) t (XNor a) => Int -> [a] -> t

    yaya 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.

  2. fromListMutable :: forall (arr :: Type -> Type) a m . (Contiguous arr, Element arr a, PrimMonad m) => [a] -> m (Mutable arr (PrimState m) a)

    contiguous Data.Primitive.Contiguous

    Convert a list into a mutable array of the given length.

  3. fromListMutableN :: forall (arr :: Type -> Type) a m . (Contiguous arr, Element arr a, PrimMonad m) => Int -> [a] -> m (Mutable arr (PrimState m) a)

    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.

  4. fromListN :: (Contiguous arr, Element arr a) => Int -> [a] -> arr a

    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.

  5. fromListWithKey :: Ord k => (k -> v -> v -> v) -> [(k, v)] -> Map k v

    dhall 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")]
    

  6. fromListN :: IsList l => Int -> [Item l] -> l

    foundation 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
    

  7. fromLists :: Context a => [[a]] -> Matrix a

    matrices Data.Matrix

    O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix

  8. fromLists :: forall m (v :: Type -> Type) a . Matrix m v a => [[a]] -> m v a

    matrices 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

  9. fromLists :: forall m (v :: Type -> Type) a . Matrix m v a => [[a]] -> m v a

    matrices 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

  10. fromLists :: forall m (v :: Type -> Type) a . Matrix m v a => [[a]] -> m v a

    matrices 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

Page 49 of many | Previous | Next