HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Data.Array.Generic

  • 1 type
  • 38 values
valuecreate :: MonadIO m => Fold m a (Array a)
#

Fold the whole input to a single array.

Caution! Do not use this on infinite streams.

valuedropAround :: (a -> Bool) -> Array a -> Array a
#

Truncate the array at the beginning and end as long as the predicate holds true. Returns a slice of the original array.

valuegetIndexUnsafe :: Int -> Array a -> a
#

Deprecated. Please use unsafeGetIndex instead.

O(1) Lookup the element at the given index. Index starts from 0. Does not check the bounds.

valuestrip :: (a -> Bool) -> Array a -> Array a
#

Deprecated. Please use dropAround instead.

Truncate the array at the beginning and end as long as the predicate holds true. Returns a slice of the original array.

valueunsafeGetIndex :: Int -> Array a -> a
#

O(1) Lookup the element at the given index. Index starts from 0. Does not check the bounds.

datadata Array a
#

Constructors

Instances4Eq, Ord, Read, Show
  • Eq a => Eq (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.Type
  • Ord a => Ord (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.Type
  • Read a => Read (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.Type
  • Show a => Show (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.Type

Parsing Stream of Arrays

4 declarations