Closed anthonyjoeseph closed 3 years ago
Thank you @anthonyjoeseph, just finished a big refactoring (PR) involving the ReadonlyArray
and ReadonlyNonEmptyArray
which should allow us to improve the chunksOf
signature. WDYT?
Wow this is huge! It looks great. I much prefer your approach of implementing chop
& splitAt
& chunksOf
in ReadonlyNonEmptyArray, and using that to implement everything else
🐛 Bug report
Array.chunksOf could return Array<NonEmptyArray>
Current Behavior
current 3.0.0
Expected behavior
Reproducible example
Suggested solution(s)
Additional context
Not sure if this is more correct, but seems doable.
I'm willing to make PRs for this if this is desired
Your environment
Which versions of fp-ts are affected by this issue? Did this work in previous versions of fp-ts?