HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

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