streamly
streamly copied to clipboard
Behaviour of `takeP` on `Continue` when `take` ends.
By @harendra-kumar,
This is a tricky case, we have the following options:
- Done 0 with extract as you have written
- Done n, will require buffering elements
- Use a backtracking fold and not a parser, once we have backtracking in folds
See https://github.com/composewell/streamly/pull/1171#discussion_r682665351