Skip to content

Commit d416a34

Browse files
xperiandriclaude
andcommitted
fixup! docs: IndexedList and IIndexedList in the changelog and the collection table
The changelog says that a function which takes a sequence rejects a default flat list given as a sequence with `ArgumentNullException` that names the parameter (`IndexedList`, `IIndexedList`, `IndexedListBuilder` and the `indexedList { }` expression), and that the 1.0.0 `ofSeq`, `concat` and `except` threw `InvalidOperationException` for it, and returned for an empty list in `except`. Both statements were checked by running the functions of the published 1.0.0 assembly and of this branch. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent fa5d280 commit d416a34

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242
that take a range check it before they call the member: the members accept a range whose end overflows `Int32.MaxValue`,
4343
`BinarySearch` accepts a range beyond the end, and `LastIndexOf` and `FindLastIndex` accept a last element at or after
4444
the end and answer with the index of another element.
45+
A function that takes a sequence throws `ArgumentNullException` that names the parameter for a `null` sequence and for a
46+
default `FlatList` given as a sequence, which the members would reject with `InvalidOperationException` while they
47+
enumerate it; the `IIndexedList` and `IndexedListBuilder` modules and the `indexedList { }` expression do the same.
4548
* `sortRange`, `sortRangeWith` and `sortRangeWithComparer` are stable, as the other sorts of `IndexedList` are, and do not
4649
wrap the unstable `ImmutableList<'T>.Sort(index, count, comparer)`.
4750
* The `IIndexedList` module has the functions of `IndexedList` for `IImmutableList<'T>`, without the creation and builder
@@ -90,7 +93,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9093
length and `ArgumentException` for a negative count, and `skip` and `truncate` return the list and an empty list for a
9194
negative count, where all four threw `ArgumentOutOfRangeException`. `forall2` throws `ArgumentException` for lists of
9295
different lengths when every pair of the shorter list satisfies the predicate, where it returned `true`. `contains` and
93-
`ofBuilder` throw `ArgumentNullException` for a `null` input, where they threw `NullReferenceException`.
96+
`ofBuilder` throw `ArgumentNullException` for a `null` input, where they threw `NullReferenceException`. A default
97+
`FlatList` given as a sequence to `ofSeq`, `concat` and `except` throws `ArgumentNullException`, where it threw
98+
`InvalidOperationException` (`except` of an empty list returned).
9499
* `IndexedList.skipWhile` and `takeWhile` do what their names say, as the functions of `List` do. In 1.0.0, `skipWhile`
95100
returned the elements before the first one that fails the predicate, and `takeWhile` returned the elements from it on.
96101
* `IndexedList.except` removes every element equal to an excluded item and the duplicates of the other elements, as

0 commit comments

Comments
 (0)