<commit_before>A `list` in F# is an immutable collection of zero or more values. The values in a list must all have the same type.

The first item in a list is referred to as the _head_, while everything after the first item is referred to as the _tail_.

Lists are manipulated by functions and operators defined in the `List` module. Once a list has been constructed, its value can never change. Any functions that appear to modify a list (such as adding an element), will actually return a new list.

As lists are implemented as singly linked lists, adding a new item to a list means adding it to the beginning of the list (before the existing elements in the list). Consequently, accessing the first item of the list is very fast, but accessing an element by index is relatively slow.
<commit_msg>Add code syntax samples to lists exercise<commit_after>A `list` in F# is an immutable collection of zero or more values. The values in a list must all have the same type.

The first item in a list is referred to as the _head_, while everything after the first item is referred to as the _tail_.

Lists are manipulated by functions and operators defined in the `List` module. Once a list has been constructed, its value can never change. Any functions that appear to modify a list (such as adding an element), will actually return a new list.

As lists are implemented as singly linked lists, adding a new item to a list means adding it to the beginning of the list (before the existing elements in the list). Consequently, accessing the first item of the list is very fast, but accessing an element by index is relatively slow.

Here are some examples on how to define a list:

```fsharp
let empty = []
// => []

let singleElement = [1]
// => [1]

let multipleElements = [2; 3; 4]
// => [2; 3; 4]

let prependElement = 5 :: [6; 7; 8]
// => [5; 6; 7; 8]
```

{'fraction_non_alphanumeric': 0.05708131394722671, 'fraction_numerical': 0.008616047388260635, 'mean_word_length': 3.9546666666666668, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6806380', 'n_tokens_mistral': 487, 'n_tokens_neox': 463, 'n_words': 323}