Safe Haskell | None |
---|---|
Language | Haskell2010 |
Various Vector based utility functions
Documentation
:: Monad m | |
=> (acc -> x -> m (acc, y)) | The function |
-> acc | The initial accumulator |
-> Stream m x | The input stream |
-> Stream m y | The output stream |
Like mapAccumL but monadic and over vectors. Doesn't return the accumulator at the end because it doesn't seem to be possible to do this with the Stream datatype, making this function pretty useless.
Create a vector from another vector containing only the elements that occur every stride elements in the source vector.