• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 1434

29 Sep 2025 01:05PM UTC coverage: 89.135% (-0.06%) from 89.198%
1434

Pull #2800

github

bobzhang
feat: separate Iterator into dedicated iterator package

- Create new iterator package with external Iterator[A] implementation
- Move Iterator struct and all methods (next, map, filter, fold, etc.) to iterator package
- Add Iterator factory methods: empty(), singleton(), unfold()
- Add AsyncIterator[A] implementation for async iteration
- Update list package to depend on iterator package
- Add List::into_iterator() method for converting List to Iterator
- Add into_async_iterator() method for converting List to AsyncIterator
- Add collect_from_iterator() function for collecting Iterator back to List
- Maintain all existing functionality with 5646 tests passing
- Avoid circular dependencies by keeping iterator package minimal
- Add comprehensive tests and documentation for iterator package

Breaking change: Iterator is now in @iterator package instead of @list
Pull Request #2800: [draft] feat: separate Iterator into dedicated iterator package

46 of 59 new or added lines in 3 files covered. (77.97%)

9311 of 10446 relevant lines covered (89.13%)

197505.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/iterator/async_iterator.mbt


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc