Skip to content

Commit 150677e

Browse files
xperiandriclaude
andcommitted
docs: list EquatableArray in the changelog, the README and the docs
Adds an Unreleased section to the changelog, the type to the collection lists, and its folders and libraries to the agent instructions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2dbd034 commit 150677e

5 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎.github/copilot-instructions.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ module's `.fsi` and the `.fs` on its `.fs`, so that Visual Studio shows them as
3737
│ │ ├── FlatListTuple.fs / FlatListTuple.fsi – Tuple namespace overrides
3838
│ │ ├── FlatListBuilder.fs / FlatListBuilder.fsi
3939
│ │ └── FlatListCE.fs / FlatListCE.fsi
40+
│ ├── EquatableArray/ – ImmutableArray with value semantics, JSON converter, patterns
41+
│ │ ├── EquatableArray.fs / EquatableArray.fsi
42+
│ │ └── EquatableArrayPatterns.fs / EquatableArrayPatterns.fsi
4043
│ ├── IndexedList/ – ImmutableList API surface and builders
4144
│ │ ├── IndexedListTypes.fs
4245
│ │ ├── IndexedList.fs / IndexedList.fsi
@@ -116,6 +119,7 @@ module's `.fsi` and the `.fs` on its `.fs`, so that Visual Studio shows them as
116119
│ │ ├── FrozenSetTuple.fs / FrozenSetTuple.fsi
117120
│ │ └── FrozenSetCE.fs / FrozenSetCE.fsi
118121
│ └── ComputationExpressions.fs / .fsi – the computation expression instances
122+
├── tests/FSharp.Collections.Immutable.CSharp.Tests/ – MSTest project in C#: collection expressions, ranges, operators
119123
└── tests/FSharp.Collections.Immutable.Tests/ – MSTest test project
120124
├── TestCategories.fs – centralized custom test category attributes
121125
├── TestCategoriesTests.fs – enforces the test category rules
@@ -149,8 +153,10 @@ The modules follow ADR 0001 – Per-collection modules (`docsSrc/Explanations/AD
149153

150154
* [`System.Collections.Immutable`](https://www.nuget.org/packages/System.Collections.Immutable/) – immutable collections foundation
151155
* [`FSharp.Core`](https://www.nuget.org/packages/FSharp.Core/) – F# language core library
156+
* [`System.Text.Json`](https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/overview) – the JSON converter of `EquatableArray` (shared framework, no package)
152157
* [`MSTest`](https://github.com/microsoft/testfx) – test framework
153158
* [`Unquote`](https://github.com/SwensenSoftware/unquote) – expressive assertions for complex checks
159+
* [`FSharp.SystemTextJson`](https://github.com/Tarmil/FSharp.SystemTextJson) – JSON tests with F# records and unions
154160
* [`FAKE`](https://fake.build/) – build and release scripting
155161
* [`Argu`](https://github.com/fsprojects/Argu) – command-line parsing for build tooling
156162

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
semantics and exceptions. Its `tryFind`, `tryFindIndex` and `tryPick` return `voption`, `choose` and `tryPick` take
3131
functions that return `voption`, and `groupBy`, `partition`, `partitionWith` and `zip` return struct tuples; the
3232
`Parallel` modules of the `Option` and `Tuple` namespaces repeat them with options and reference tuples.
33+
* `EquatableArray<'T>`: a struct over one `ImmutableArray<'T>` with value semantics, for fields of records and unions,
34+
dictionary and set keys and persisted documents (ADR 0002)
35+
* Equality and the hash code use all elements; every caller gets them, C# `==` and `!=` included
36+
* Comparison puts shorter arrays first, then orders by the first different element, in the order of F# comparison
37+
* The default value is the empty array
38+
* Conversion to and from `ImmutableArray<'T>` does not copy; C# collection expressions and ranges work
39+
* A System.Text.Json converter that needs no registration
40+
* The `EquatableArray` module: `empty`, `ofArray`, `ofImmutableArray`, `ofList`, `ofSeq`, `singleton`,
41+
`unsafeOfArray`, `isEmpty`, `length`, `map`, `toImmutableArray`
42+
* The struct partial active patterns `Arr0`, `Arr1`, `Arr2`, `Arr3` and `ArrN`
3343

3444
### Changed
3545

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Please also join the [F# Open Source Group](http://fsharp.github.com)
1313
| Module | .NET type | Computation expression |
1414
|---|---|---|
1515
| `FlatList` | `ImmutableArray<'T>` | `flatList { }` |
16+
| `EquatableArray` | `EquatableArray<'T>`, an `ImmutableArray<'T>` with value equality, comparison and an empty default value | – |
1617
| `ImmutableList` | `ImmutableList<'T>` | – |
1718
| `Stack` | `ImmutableStack<'T>` | – |
1819
| `Queue` | `ImmutableQueue<'T>` | – |

‎docsSrc/Explanations/Background.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ While F# has its own built-in immutable collections, System.Collections.Immutabl
2727
| Module | .NET type | Computation expression |
2828
|---|---|---|
2929
| `FlatList` | `ImmutableArray<'T>` | `flatList { }` |
30+
| `EquatableArray` | `EquatableArray<'T>`, an `ImmutableArray<'T>` with value equality, comparison and an empty default value | – |
3031
| `ImmutableList` | `ImmutableList<'T>` | – |
3132
| `Stack` | `ImmutableStack<'T>` | – |
3233
| `Queue` | `ImmutableQueue<'T>` | – |

‎docsSrc/index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ F# bindings for [System.Collections.Immutable](https://learn.microsoft.com/en-us
99
| Module | .NET type | Computation expression |
1010
|---|---|---|
1111
| `FlatList` | `ImmutableArray<'T>` | `flatList { }` |
12+
| `EquatableArray` | `EquatableArray<'T>`, an `ImmutableArray<'T>` with value equality, comparison and an empty default value | – |
1213
| `ImmutableList` | `ImmutableList<'T>` | – |
1314
| `Stack` | `ImmutableStack<'T>` | – |
1415
| `Queue` | `ImmutableQueue<'T>` | – |

0 commit comments

Comments
 (0)