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. fromList :: MonadIO m => [a] -> m (MutArray a)

    streamly-core Streamly.Data.MutArray.Generic

    No documentation available.

  2. fromListN :: MonadIO m => Int -> [a] -> m (MutArray a)

    streamly-core Streamly.Data.MutArray.Generic

    No documentation available.

  3. toList :: MonadIO m => MutArray a -> m [a]

    streamly-core Streamly.Data.MutArray.Generic

    Convert an Array into a list. Pre-release

  4. fromList :: forall (m :: Type -> Type) a . Applicative m => [a] -> Stream m a

    streamly-core Streamly.Data.Stream

    Construct a stream from a list of pure values.

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

  6. fromList :: forall (m :: Type -> Type) a . Applicative m => Unfold m [a] a

    streamly-core Streamly.Data.Unfold

    Convert a list of pure values to a Stream

  7. fromListM :: Applicative m => Unfold m [m a] a

    streamly-core Streamly.Data.Unfold

    Convert a list of monadic values to a Stream

  8. fromList :: Unbox a => [a] -> Array a

    streamly-core Streamly.Internal.Data.Array

    Create an Array from a list. The list must be of finite size.

  9. fromListN :: Unbox a => Int -> [a] -> Array a

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

  10. fromListRev :: Unbox a => [a] -> Array a

    streamly-core Streamly.Internal.Data.Array

    Create an Array from a list in reverse order. The list must be of finite size. Pre-release

Page 174 of many | Previous | Next