HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Data.Array.Generic

Contents
  1. Parsing Stream of Arrays
Synopsis
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