Commit c3ee673
committed
Make lazy map lazy in the structure
Previously, the lazy version of `mapWithKey` forced the whole structure
(except the leaves). For a large `HashMap`, it's usually much
better to be incremental. This also makes `mapWithKey` consistent
with `traverseWithKey`.
Fixes #1951 parent b5f24e7 commit c3ee673
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
1421 | | - | |
1422 | | - | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1423 | 1425 | | |
1424 | 1426 | | |
1425 | 1427 | | |
| |||
0 commit comments