Skip to content

feat: add stream_next/3 and stream_previous/3 to TimeSlot#35

Merged
hopsor merged 1 commit intomainfrom
feat-timeslot-stream
Mar 18, 2026
Merged

feat: add stream_next/3 and stream_previous/3 to TimeSlot#35
hopsor merged 1 commit intomainfrom
feat-timeslot-stream

Conversation

@hopsor
Copy link
Copy Markdown
Owner

@hopsor hopsor commented Mar 18, 2026

Summary

  • Add TimeSlot.stream_next/3 and TimeSlot.stream_previous/3 as public lazy stream functions for iterating through time slots forward and backward
  • Both accept a DateTime and support the :include_overlap option, consistent with next/3 and previous/3
  • Refactor next/3 and previous/3 to delegate to the new stream functions with Enum.take(limit)
  • Handle empty schedules by returning an empty list (avoids infinite iteration)

🤖 Generated with Claude Code

@hopsor hopsor force-pushed the feat-timeslot-stream branch from 70d5f39 to a33677e Compare March 18, 2026 22:16
Expose lazy streams for iterating through time slots forward and
backward. Refactor next/3 and previous/3 to delegate to these
new stream functions with Enum.take(limit).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hopsor hopsor force-pushed the feat-timeslot-stream branch from a33677e to 5b4b3f5 Compare March 18, 2026 22:41
@hopsor hopsor merged commit 0d671dc into main Mar 18, 2026
3 checks passed
@hopsor hopsor deleted the feat-timeslot-stream branch March 18, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant