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

moonbitlang / core / 6709
89%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 02:03AM 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:00AM UTC coverage: 89.46% (+0.008%) from 89.452%
6709

push

github

bobzhang
feat(builtin): add Map::filter

A functional counterpart to Map::retain: returns a new map with the
entries for which the predicate is true, in insertion order. It reuses
each entry's stored hash, sizes the result like the source (no grow),
and skips key comparisons since source keys are unique, so it needs no
`K : Eq` bound. The predicate may raise, like Array::filter.

On 50,000 entries (native, release) it is 2.4x faster than rebuilding
from a comprehension with Int keys and 2.9-4.1x with String keys.

Also clarify Map::retain's docstring: `true` means keep, point to
filter, and name the `f` parameter correctly.

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

13 of 13 new or added lines in 1 file covered. (100.0%)

16415 of 18349 relevant lines covered (89.46%)

274865.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6709.1 23 Sep 2026 02:03AM UTC 448
89.46
GitHub Action Run
Source Files on build 6709
  • Tree
  • List 448
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 08142393 on github
  • Prev Build on main (#6703)
  • Next Build on main (#6711)
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