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.
fromList :: MonadIO m => [a] -> m (MutArray a)streamly-core Streamly.Data.MutArray.Generic No documentation available.
fromListN :: MonadIO m => Int -> [a] -> m (MutArray a)streamly-core Streamly.Data.MutArray.Generic No documentation available.
toList :: MonadIO m => MutArray a -> m [a]streamly-core Streamly.Data.MutArray.Generic Convert an Array into a list. Pre-release
fromList :: forall (m :: Type -> Type) a . Applicative m => [a] -> Stream m astreamly-core Streamly.Data.Stream Construct a stream from a list of pure values.
toList :: Monad m => Stream m a -> m [a]streamly-core Streamly.Data.Stream Definitions:
>>> toList = Stream.foldr (:) [] >>> toList = Stream.fold Fold.toList
Convert a stream into a list in the underlying monad. The list can be consumed lazily in a lazy monad (e.g. Identity). In a strict monad (e.g. IO) the whole list is generated and buffered before it can be consumed. Warning! working on large lists accumulated as buffers in memory could be very inefficient, consider using Streamly.Data.Array instead. Note that this could a bit more efficient compared to Stream.fold Fold.toList, and it can fuse with pure list consumers.fromList :: forall (m :: Type -> Type) a . Applicative m => Unfold m [a] astreamly-core Streamly.Data.Unfold Convert a list of pure values to a Stream
fromListM :: Applicative m => Unfold m [m a] astreamly-core Streamly.Data.Unfold Convert a list of monadic values to a Stream
fromList :: Unbox a => [a] -> Array astreamly-core Streamly.Internal.Data.Array Create an Array from a list. The list must be of finite size.
fromListN :: Unbox a => Int -> [a] -> Array astreamly-core Streamly.Internal.Data.Array Create an Array from the first N elements of a list. The array is allocated to size N, if the list terminates before N elements then the array may hold less than N elements.
fromListRev :: Unbox a => [a] -> Array astreamly-core Streamly.Internal.Data.Array Create an Array from a list in reverse order. The list must be of finite size. Pre-release