Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. showArrayList :: Show arr => [arr] -> String -> String

    massiv Data.Massiv.Core.List

    Helper function for declaring Show instances for arrays

  2. toListArray :: (Ragged L ix e, Shape r ix, Source r e) => Array r ix e -> Array L ix e

    massiv Data.Massiv.Core.List

    Construct an array backed by linked lists from any source array

  3. unList :: List ix e -> [Elt ix e]

    massiv Data.Massiv.Core.List

    No documentation available.

  4. fromList :: Manifest r e => Comp -> [e] -> Vector r e

    massiv Data.Massiv.Vector

    Convert a flat list into a vector

  5. sfromList :: [e] -> Vector DS e

    massiv Data.Massiv.Vector

    Convert a list to a delayed stream vector Related: fromList, fromListN, sfromListN

    Examples

    >>> sfromList ([] :: [Int])
    Array DS Seq (Sz1 0)
    [  ]
    
    >>> sfromList ([1,2,3] :: [Int])
    Array DS Seq (Sz1 3)
    [ 1, 2, 3 ]
    

  6. sfromListN :: Sz1 -> [e] -> Vector DS e

    massiv Data.Massiv.Vector

    Convert a list to a delayed stream vector. Length of the resulting vector will be at most n. This version isn't really more efficient then sfromList, but there is unsafeFromListN Related: fromList, fromListN, sfromList

    Examples

    >>> sfromListN 10 [1 :: Int ..]
    Array DS Seq (Sz1 10)
    [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
    
    >>> sfromListN 10 [1 :: Int .. 5]
    Array DS Seq (Sz1 5)
    [ 1, 2, 3, 4, 5 ]
    

  7. stoList :: Stream r ix e => Array r ix e -> [e]

    massiv Data.Massiv.Vector

    Convert an array to a list by the means of a delayed stream vector. Related: toList

    Examples

  8. toAltList :: (Semigroup m, Semigroup n) => (m :+: n) -> [Either m n]

    monoid-extras Data.Monoid.Coproduct

    Extract a monoid coproduct to a list of Either values. The resulting list is guaranteed to be normalized, in the sense that it will strictly alternate between Left and Right.

  9. toReducedAltList :: (Eq m, Eq n, Monoid m, Monoid n) => (m :+: n) -> [Either m n]

    monoid-extras Data.Monoid.Coproduct

    Extract a monoid coproduct to a list of Either values. The resulting list is guaranteed to be normalized, in the sense that it will strictly alternate between Left and Right and no identity element from m or n will occur in the list.

  10. module Data.Monoid.MList

    Heterogeneous lists of monoids.

Page 96 of many | Previous | Next