Ticket #6 (new defect)
Opened 3 years ago
mapStream consumes an entire chunk even if the inner iteratee doesn't
| Reported by: | anonymous | Owned by: | jwlato |
|---|---|---|---|
| Priority: | major | Milestone: | version 0.4.0 |
| Component: | core | Version: | All |
| Keywords: | Cc: |
Description
mapStream maps elements one chunk at a time. If the inner iteratee only consumes part of the chunk, the remainder is discarded. The desired behavior would be to have mapStream only consume as much input as necessary for the inner iteratee.
Example:
Prelude Data.Iteratee> enumPureNChunk [1..10] 4 (joinI (mapStream (*2) Data.Iteratee.head) >> stream2stream) >>= run [5,6,7,8,9,10] Prelude Data.Iteratee>
Note: See
TracTickets for help on using
tickets.
