Skip to content

feat(ds): add map mutation helpers#88

Open
simPod wants to merge 1 commit into
0.2.xfrom
feat/ds-map-helpers
Open

feat(ds): add map mutation helpers#88
simPod wants to merge 1 commit into
0.2.xfrom
feat/ds-map-helpers

Conversation

@simPod

@simPod simPod commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Adds Java-style Ds\Map mutation helpers: mapPutIfAbsent(), mapCompute(), mapComputeIfAbsent(), and mapComputeIfPresent().

The compute helpers mutate the provided map and use null computed values for the Java-style remove/do-not-add semantics.

@simPod simPod force-pushed the feat/ds-map-helpers branch 2 times, most recently from 8d560f5 to e605df5 Compare June 13, 2026 15:55
@codecov-commenter

codecov-commenter commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.42857% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.13%. Comparing base (748039d) to head (c90043e).
⚠️ Report is 2 commits behind head on 0.2.x.

Files with missing lines Patch % Lines
src/functions_include.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            0.2.x      #88      +/-   ##
==========================================
+ Coverage   85.93%   89.13%   +3.19%     
==========================================
  Files           6        7       +1     
  Lines          64       92      +28     
==========================================
+ Hits           55       82      +27     
- Misses          9       10       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@simPod simPod force-pushed the feat/ds-map-helpers branch from e605df5 to 5850b44 Compare June 13, 2026 15:58
@simPod simPod force-pushed the feat/ds-map-helpers branch from 5850b44 to c90043e Compare June 13, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants