> For the complete documentation index, see [llms.txt](https://yoan-thirion.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yoan-thirion.gitbook.io/knowledge-base/software-craftsmanship/code-katas/functional-programming-made-easy-in-java-and-c.md).

# Functional Programming made easy in Java & C\#

Workshop created with [Alexandre Grison](https://twitter.com/algrison)

## Objectives

* Demystify together what is Functional Programming (FP)
* Deep dive into FP paradigms like monads, pure functions, high order functions, and much more.
* Understand why and how apply those principles in Object Oriented languages like java (with vavr) & C# (with language-ext).

In this workshop we will demonstrate how to write Functional code that is:

* More robust
* Easier to read
* Easier to maintain

## Support

{% hint style="success" %}
The coding part consists of ***fixing failing tests***. Exercises are explained in the comment of the tests. Our solution in both languages are in the "solution" branches.
{% endhint %}

* For Java : <https://github.com/ythirion/vavr-kata>
* For C# : <https://github.com/ythirion/language-ext-kata>
  * There is a third branch called "solution-async" that demonstrates the us of language-ext in an async

{% embed url="<https://speakerdeck.com/thirion/functional-programming-made-easy-in-java-and-c-number>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://yoan-thirion.gitbook.io/knowledge-base/software-craftsmanship/code-katas/functional-programming-made-easy-in-java-and-c.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
