haskell / haskell/vector

Add a variant unfoldrExactN, returning the resulting generator

Open
#447 3 comments 0 reactions 0 assignees View on GitHub
help-wanted
Dominant language
Haskell
Stars
400
Forks
145
PR merge metrics
No merged PRs in 30d

Description

I have a job for
```haskell
unfoldrExactN_ :: Int -> (b -> (a, b)) -> b -> (Vector a, b)
```
but it is surprisingly difficult to emulate: the best I managed to do was put `b` into `State` and use `replicateM`.

How do you feel about extending `vector` with such function?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.