Skip to content

feat: add flatten and match utility functions#6

Merged
kfly8 merged 1 commit intomainfrom
match
Apr 20, 2025
Merged

feat: add flatten and match utility functions#6
kfly8 merged 1 commit intomainfrom
match

Conversation

@kfly8
Copy link
Copy Markdown
Owner

@kfly8 kfly8 commented Apr 20, 2025

This commit adds two new utility functions to Result::Simple:

  1. flatten: Flattens a list of Result arrays into a single list
  2. match: Provides pattern matching-like functionality for handling Results

Additional changes:

  • Add comprehensive documentation with examples for both functions
  • Add a new section showing how to use Result::Simple with Promises
  • Update Perl version requirement to v5.40.0
  • Add tests for the new functions
  • Minor code cleanup in pipeline function

This commit adds two new utility functions to Result::Simple:

1. flatten: Flattens a list of Result arrays into a single list
2. match: Provides pattern matching-like functionality for handling Results

Additional changes:
- Add comprehensive documentation with examples for both functions
- Add a new section showing how to use Result::Simple with Promises
- Update Perl version requirement to v5.40.0
- Add tests for the new functions
- Minor code cleanup in pipeline function
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 14556738067

Details

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 14553692295: 0.0%
Covered Lines: 146
Relevant Lines: 146

💛 - Coveralls

@kfly8 kfly8 merged commit 3fd1657 into main Apr 20, 2025
14 checks passed
@kfly8 kfly8 deleted the match branch April 20, 2025 13:27
kfly8 added a commit that referenced this pull request Apr 21, 2025
Changelog diff is:

diff --git a/Changes b/Changes
index cf5463c..3c21f8d 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Revision history for Perl extension Result-Simple
 
 {{$NEXT}}
+
+0.06 2025-04-21T22:40:07Z
     - [ENHANCEMENTS]
         - feat: add flatten and match utility functions #6
kfly8 added a commit that referenced this pull request Nov 1, 2025
Changelog diff is:

diff --git a/Changes b/Changes
index 3c21f8d..bd633d9 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Perl extension Result-Simple
 
 {{$NEXT}}
 
+0.07 2025-11-01T03:46:56Z
+    - Test on perl v5.42 #7
+
 0.06 2025-04-21T22:40:07Z
     - [ENHANCEMENTS]
         - feat: add flatten and match utility functions #6
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