Commit Graph

1 Commits

Author SHA1 Message Date
Thorbjørn Lindeijer
4555a47465 feat: add lazy Sequence.skip and Sequence.take methods with SkipSequence and TakeSequence classes
Implement SkipSequence and TakeSequence as lazy iterator-producing wrappers in the core Sequence class. SkipSequence advances past the first count elements on initial iteration, while TakeSequence tracks taken count via _taken field and returns null when exceeded. Include documentation in sequence.markdown, update wren_core.wren.inc, and add test files for both methods covering edge cases (zero, negative, overflow counts).
2015-04-06 15:54:04 +00:00