Skip to content
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

[FEATURE]: add functional programming patterns #2

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

helabenkhalfallah
Copy link
Owner

📊 Functional Programming (FP)

  • Composition: Function composition for declarative programming
  • Currying: Transforming functions into unary functions
  • Functors: CanApply for safe function application
  • Monads:
    • Option: Safe handling of optional values (Some, None)
    • Result<T, E>: Error handling without exceptions (Ok, Err)
    • Effect<T, E>: Deferred computations with error safety

@helabenkhalfallah helabenkhalfallah merged commit b834ec5 into main Feb 14, 2025
2 checks passed
@helabenkhalfallah helabenkhalfallah deleted the feature/functional-patterns branch February 14, 2025 10:38
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.

1 participant