Skip to content

Commit 3b66008

Browse files
xperiandriclaude
andcommitted
docs: FlatList in the changelog and the collection table
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 517e98d commit 3b66008

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
* `FlatList` has every function of the FSharp.Core `Array` module that applies to an immutable array, with its semantics
13+
and exceptions, plus `add`, `asMemory`, `asSpan`, `binarySearch`, `indexOf`, `indexOfWith`, `lastIndexOf`,
14+
`lastIndexOfWith`, `ofReadOnlySpan`, `ofSpan`, `skipLast`, `sortWithComparer`, `takeLast` and `tryTail`.
15+
* The `FSharp.Collections.Immutable.Option.FlatList` and `FSharp.Collections.Immutable.Tuple.FlatList` modules repeat the
16+
functions that use value options or struct tuples with options and reference tuples.
17+
* The `FlatListBuilder` module works on the builder of a flat list, and `flatList { }` builds a flat list.
18+
1019
### Changed
1120

1221
* The package targets `net8.0` and `net10.0`.
1322
* The package requires FSharp.Core 10.1.301 or later, the first release with `partitionWith`.
23+
* `FlatList`: the `try*` functions return `voption`; `choose`, `pick`, `tryPick` and `unfold` take functions that return
24+
`voption`; the functions that return tuples return struct tuples.
25+
* `FlatList`: every function throws what the FSharp.Core `Array` function of the same name throws. `take` and `splitAt`
26+
throw for a count beyond the length, and a default `ImmutableArray` throws `ArgumentNullException`.
27+
28+
### Removed
29+
30+
* `FlatList.index`, `indexWith`, `indexFrom`, `indexFromWith`, `indexRange`, `indexRangeWith` and their `lastIndex`
31+
counterparts: use `indexOf`, `indexOfWith`, `lastIndexOf` and `lastIndexOfWith`.
32+
* `FlatList.removeAll`, `removeAllWith`, `removeRange`, `sortRange`, `sortRangeWith`, `sortRangeWithComparer` and `sub`,
33+
and the `ImmutableArray` module alias of `FlatList`.
34+
* The `Seq` module of conversions between the collections.
1435

1536
## [1.0.0] - 2020-02-23
1637

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Please also join the [F# Open Source Group](http://fsharp.github.com)
1212

1313
| Module | .NET type | Computation expression |
1414
|---|---|---|
15-
| `FlatList` | `ImmutableArray<'T>` | – |
15+
| `FlatList` | `ImmutableArray<'T>` | `flatList { }` |
1616
| `ImmutableList` | `ImmutableList<'T>` | – |
1717
| `Stack` | `ImmutableStack<'T>` | – |
1818
| `Queue` | `ImmutableQueue<'T>` | – |

‎docsSrc/Explanations/Background.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ While F# has its own built-in immutable collections, System.Collections.Immutabl
2626

2727
| Module | .NET type | Computation expression |
2828
|---|---|---|
29-
| `FlatList` | `ImmutableArray<'T>` | – |
29+
| `FlatList` | `ImmutableArray<'T>` | `flatList { }` |
3030
| `ImmutableList` | `ImmutableList<'T>` | – |
3131
| `Stack` | `ImmutableStack<'T>` | – |
3232
| `Queue` | `ImmutableQueue<'T>` | – |

‎docsSrc/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ F# bindings for [System.Collections.Immutable](https://learn.microsoft.com/en-us
88

99
| Module | .NET type | Computation expression |
1010
|---|---|---|
11-
| `FlatList` | `ImmutableArray<'T>` | – |
11+
| `FlatList` | `ImmutableArray<'T>` | `flatList { }` |
1212
| `ImmutableList` | `ImmutableList<'T>` | – |
1313
| `Stack` | `ImmutableStack<'T>` | – |
1414
| `Queue` | `ImmutableQueue<'T>` | – |

0 commit comments

Comments
 (0)