<commit_before># ZeroFormatter Extensions for FSharp

[![Build status](https://ci.appveyor.com/api/projects/status/8471jv6ayhgfvcpr/branch/master?svg=true)](https://ci.appveyor.com/project/pocketberserker/zeroformatter-fsharpextensions/branch/master)

ZeroFormatter.FSharpExtensions is a [ZeroFormatter](https://github.com/neuecc/ZeroFormatter) extension library for F#.

## Usage

```fsharp
open ZeroFormatter

ZeroFormatter.FSharp.Register()

// define type and initialize value ...

ZeroFormatterSerializer.Serialize(value)
```

## Null safety

You can use `'T option` instead of `Nullable<'T>` or `null`.

## Supported types

| F# | WireFormat | Note |
| -- | ---------- | ---- |
| Record | Struct | versioning is not supported. |
| DU | Union | |
| 'T list | Sequence | |
| Map<'K, 'V> | Sequence | |
| Set<'T> | Sequence | |<commit_msg>[skip ci] update README<commit_after># ZeroFormatter Extensions for FSharp

[![Build status](https://ci.appveyor.com/api/projects/status/8471jv6ayhgfvcpr/branch/master?svg=true)](https://ci.appveyor.com/project/pocketberserker/zeroformatter-fsharpextensions/branch/master)

ZeroFormatter.FSharpExtensions is a [ZeroFormatter](https://github.com/neuecc/ZeroFormatter) extension library for F#.

## Usage

```fsharp
open ZeroFormatter

ZeroFormatter.FSharp.Register()

// define type and initialize value ...

ZeroFormatterSerializer.Serialize(value)
```

## Null safety

You can use `'T option` instead of `Nullable<'T>` or `null`.

## Supported types

| F# | WireFormat | Note |
| --- | ---------- | ---- |
| Record | Struct | versioning is not supported. |
| DU | Union | versioning is not supported. |
| 'T list | Sequence | |
| Map<'K, 'V> | Sequence | |
| Set<'T> | Sequence | |
{'fraction_non_alphanumeric': 0.16473317865429235, 'fraction_numerical': 0.00580046403712297, 'mean_word_length': 4.259146341463414, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1706905', 'n_tokens_mistral': 589, 'n_tokens_neox': 555, 'n_words': 125}