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.
unList :: List ix e -> [Elt ix e]massiv Data.Massiv.Core.List No documentation available.
fromList :: Manifest r e => Comp -> [e] -> Vector r emassiv Data.Massiv.Vector Convert a flat list into a vector
sfromList :: [e] -> Vector DS emassiv 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 ]
sfromListN :: Sz1 -> [e] -> Vector DS emassiv 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 ]
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
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.
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.
-
Heterogeneous lists of monoids.
-
monoid-extras Data.Monoid.MList Type class for heterogeneous monoidal lists, with a single method allowing construction of an empty list.
toAltList :: (Semigroup m, Semigroup n) => (m :+. n) -> NonEmpty (Either m n)monoid-extras Data.Semigroup.Coproduct Extract a semigroup coproduct to a non-empty list of Either values. The resulting list is guaranteed to be normalized, in the sense that it will strictly alternate between Left and Right.