streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Behaviour of `takeP` on `Continue` when `take` ends.

Open adithyaov opened this issue 4 years ago • 0 comments

By @harendra-kumar,

This is a tricky case, we have the following options:

  1. Done 0 with extract as you have written
  2. Done n, will require buffering elements
  3. Use a backtracking fold and not a parser, once we have backtracking in folds

See https://github.com/composewell/streamly/pull/1171#discussion_r682665351

adithyaov avatar Aug 04 '21 14:08 adithyaov