Skip to content

[FEATURE]: add functional programming patterns#2

Merged
helabenkhalfallah merged 1 commit intomainfrom
feature/functional-patterns
Feb 14, 2025
Merged

[FEATURE]: add functional programming patterns#2
helabenkhalfallah merged 1 commit intomainfrom
feature/functional-patterns

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