Skip to content

Commit

Permalink
Update 2024-07-18-quick-byte-understanding-currying-in-java-with-a-re…
Browse files Browse the repository at this point in the history
…al-life-example.md

Signed-off-by: Akshit Batra <[email protected]>
  • Loading branch information
akbatra567 authored Jul 24, 2024
1 parent 3c7eb8b commit ce33407
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ public class CurryingExample {
* Modular Calculation: Discounts are calculated in a modular way, making it easy to add or change discount rules.
* Reusability: Partial functions (e.g., discounts for specific user types or product categories) can be reused with different prices.
* Readability: The code is more readable and maintainable due to the clear separation of concerns.


Read more:
1. [Currying in Java](https://www.baeldung.com/java-currying)
2. [Functional Programming in Java](https://www.baeldung.com/java-functional-programming)

0 comments on commit ce33407

Please sign in to comment.