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

moonbitlang / core / 6713
89%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 02:52AM UTC
Jobs 1
Files 448
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Sep 2026 02:49AM UTC coverage: 89.485% (+0.02%) from 89.463%
6713

push

github

web-flow
feat: add filter to HashMap, HashSet and Set, and retain to Set (#4255)

Follow-up to #4253/#4254, which added Map::filter.

- HashMap::filter, HashSet::filter and Set::filter return a new
  collection holding the elements the predicate keeps. Like
  Map::filter, they reuse each entry's stored hash (no rehashing, no
  key comparisons, so no Hash/Eq bound), size the result the way each
  type's constructor would, and accept a raising predicate. Set::filter
  keeps insertion order.
- Set::retain: Set was the only one of the four with no in-place
  filter. It mirrors Map::retain, and the shift_back safety comments now
  cover its stored-index route the same way Map's do.
- The retain docstrings for HashMap and HashSet now say that true means
  keep and point to filter, as Map's does.

On 50,000 String keys (native, release), filter is 2.3-2.6x faster than
rebuilding from a comprehension; with Int keys, 1.5x for HashMap and
1.1-1.2x for the two sets, which build no tuples.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

38 of 38 new or added lines in 3 files covered. (100.0%)

16458 of 18392 relevant lines covered (89.48%)

274062.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6713.1 23 Sep 2026 02:52AM UTC 448
89.48
GitHub Action Run
Source Files on build 6713
  • Tree
  • List 448
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 22a1ef6c on github
  • Prev Build on main (#6711)
  • Next Build on main (#6721)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc