Commit 2b4330f
refactor(immut): if-is for None=>() match in HAMT each helpers
Both `immut/hashset/HAMT.mbt` and `immut/hashmap/HAMT.mbt` had a noop-on-empty
match in their iteration helper:
```moonbit
match self.0 {
None => ()
Some(node) => go(node)
}
```
Replaced with the equivalent direct form:
```moonbit
if self.0 is Some(node) {
go(node)
}
```
Both files share the exact same shape so bundled.
Semantics-preserving: full `moon test` (6425/6425) passes and `moon info`
produces no `.mbti` change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 03bc394 commit 2b4330f
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
614 | | - | |
615 | | - | |
| 613 | + | |
| 614 | + | |
616 | 615 | | |
617 | 616 | | |
618 | 617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | | - | |
| 344 | + | |
| 345 | + | |
347 | 346 | | |
348 | 347 | | |
349 | 348 | | |
| |||
0 commit comments