A pull array is an array from which it is easy to extract elements, and this can be done in any order. The linear consumption of a pull array means each element is consumed exactly once, but the length can be accessed freely.
Modulelinear-base-0.4.0Haskell2010
Data.Array.Polarized.Pull.Internal
- 1 type
- 11 values
- Packagelinear-base-0.4.0
- Exports12
- LanguageHaskell2010
- LicenceMIT
- SourceInternal.hs
Produce a pull array of lenght 1 consisting of solely the given element.
zip [x1, ..., xn] [y1, ..., yn] = [(x1,y1), ..., (xn,yn)]
Partial: `zip [x1,x2,...,xn] [y1,y2,...,yp]` is an error if n ≠ p.
Concatenate two pull arrays.
Creates a pull array of given size, filled with the given element.
A right-fold of a pull array.
Extract the length of an array, and give back the original array.
fromFunction arrIndexer len constructs a pull array given a function
arrIndexer that goes from an array index to array values and a specified
length len.
This is a convenience function for alloc . transfer
Reverse a pull array.
Index a pull array (without checking bounds)