Streamly.Data.Array.Generic
Unconstrained version of Streamly.Data.Array module.
See the Streamly.Data.Array module for documentation.
Documentation
Instances
Read a => Read (Array a) Source # | |
Show a => Show (Array a) Source # | |
Eq a => Eq (Array a) Source # | |
Ord a => Ord (Array a) Source # | |
Defined in Streamly.Internal.Data.Array.Generic |
Construction
create :: MonadIO m => Fold m a (Array a) Source #
Fold the whole input to a single array.
Caution! Do not use this on infinite streams.
Conversion
Streams
Unfolds
Stream of Arrays
Random Access
getIndex :: Int -> Array a -> Maybe a Source #
Lookup the element at the given index. Index starts from 0.