Consuming a Lazy Sequence at an Expected Boundary

An operation consuming a lazy sequence determines when its work, effects, and failures actually occur.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a delayed failure
  2. Decide whether partial results can be used

Trace a delayed failure

A generator can successfully yield two results and fail converting its third. A consumer requesting only the first never observes that failure. Generator execution distinguishes construction and advancement.

Decide whether partial results can be used

A dashboard can show valid records obtained before an error if that is documented. A replacement export may need every record before publication. See complete file replacement for that publication boundary.[1]

References

  1. Python Software Foundation, Functional Programming HOWTO ↩