| Start |
|---|
| Filtering a Vector Filter odd elements: |
Mapping (map) and Reducing (fold) a Vector Vectors can be Reduce to a single value: |
| Working on Multiple Vectors Zip two arrays into an array of pairs: |
| The Data.Vector Module The Data.Vector (opens new window) module provided by the vector (opens new window) is a high performance library for working with arrays. Once you've imported You can even have a multi-dimensional array: RemarksIt [Data.Vector] has an emphasis on very high performance through loop fusion, whilst retaining a rich interface. The main data types are boxed and unboxed arrays, and arrays may be immutable (pure), or mutable. Arrays may hold Storable elements, suitable for passing to and from C, and you can convert between the array types. Arrays are indexed by non-negative Int values. The Haskell Wiki has these recommendations (opens new window): In general:
|
Read Article
https://develop.horje.com/learn/1434/reference