<commit_before># `Map`

A map is an unordered list of pair of elements, think of it like an associative array or an `array<T, S>` in the [Psalm](http://psalm.dev) nomenclature. But with the added benefit that the keys can be of any type, even objects!

## `::of()`

```php
use Innmind\Immutable\Map;

/** @var Map<object, int> */
$map = Map::of('object', 'int');
```

The first type is for the keys and the second one for the values. This order is the same for all the methods below where you specified both types.<commit_msg>remove reference to the manual type system<commit_after># `Map`

A map is an unordered list of pair of elements, think of it like an associative array or an `array<T, S>` in the [Psalm](http://psalm.dev) nomenclature. But with the added benefit that the keys can be of any type, even objects!

## `::of()`

```php
use Innmind\Immutable\Map;

/** @var Map<object, int> */
$map = Map::of('object', 'int');
```

The first type is for the keys and the second one for the values. This order is the same for all the methods below.
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.0, 'mean_word_length': 4.202970297029703, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2672801', 'n_tokens_mistral': 331, 'n_tokens_neox': 314, 'n_words': 162}