-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Add utilities for working with functions #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #77 +/- ##
==========================================
- Coverage 82.64% 82.17% -0.48%
==========================================
Files 80 81 +1
Lines 2432 2446 +14
Branches 1361 1375 +14
==========================================
Hits 2010 2010
- Misses 422 436 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- pipe - compose - pack - apply
Description
This PR introduces a set of functional programming utilities.
lib/src/util/functional.dart
, has been added, which includes extension methods for:pipe
: For chaining functions.compose
: For composing functions.apply
: For partial application of functions (supports 1 to 4 arguments).pack
: For converting functions that take multiple arguments into functions that take a single tuple argument (supports 1 to 4 arguments).lib/relic.dart
file for easier access.Related Issues
Pre-Launch Checklist
Please ensure that your PR meets the following requirements before submitting:
///
), ensuring consistency with existing project documentation.