<commit_before>OptionalT
========

OptionalT class allow you to convert AnyM monad to its Optional (like in Java) analog.

Creating OptionalT
------------------
You can build OptionalT from AnyM using methods `fromAnyM` or `of`.
```java
OptionalT<Integer> optionalInteger = OptionalT.of(AnyM.<Integer> ofNullable(4).map(Optional::of));
OptionalT<Integer> optionalInteger2 = OptionalT.fromAnyM(AnyM.<Integer> ofNullable(4));
```


Transforming OptionalT
--------------
Main feature of OptionalT is ability to perform data transformation using it. You can use `map` method

```java
OptionalT<Integer> optionalInteger2 = OptionalT.fromAnyM(AnyM.<Double> ofNullable(4)).map(s -> s.intValue());
```

in case you need to use partial function you can use `flatMap`
<commit_msg>Update OptionalT.md<commit_after>OptionalT
========

OptionalT class allow you to manipulate an Optional/s wrapped inside any other monad type (via AnyM).

Creating OptionalT
------------------
You can build OptionalT from AnyM using methods `fromAnyM` or `of`.
```java
OptionalT<Integer> optionalInteger = OptionalT.of(AnyM.<Integer> ofNullable(4).map(Optional::of));
OptionalT<Integer> optionalInteger2 = OptionalT.fromAnyM(AnyM.<Integer> ofNullable(4));
```


Transforming OptionalT
--------------
Main feature of OptionalT is ability to perform data transformation using it. You can use `map` method

```java
OptionalT<Integer> optionalInteger2 = OptionalT.fromAnyM(AnyM.<Double> ofNullable(4)).map(s -> s.intValue());
```

in case you need to use partial function you can use `flatMap`

{'fraction_non_alphanumeric': 0.15118513773222295, 'fraction_numerical': 0.0064061499039077515, 'mean_word_length': 4.68, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1530286', 'n_tokens_mistral': 448, 'n_tokens_neox': 434, 'n_words': 152}