Repository navigation
Commit 6fc99a0
fixup! feat:
`yield!` of an array of struct pairs and of a hash map had no null check: a `null` array or map
failed with `NullReferenceException` when the buffer ran, and not as `ArgumentNullException` that
names `pairs` or `table` when the member runs, as the overloads for sequences do. Both members now
call `checkNotNull` first, and the signature file documents the exception.
The other members of `HashMapCE` take a struct (`Yield`), a function value of the expression
(`YieldFrom` of a buffer, `Combine`, `Delay`, `While`, `TryWith`, `TryFinally`, `Using`) or the
sequence that is already checked (`YieldFrom`, `For`), as in `FlatListCE`.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>HashMap and IMap modules with the vocabulary of the FSharp.Core Map module1 parent 0e2bb7d commit 6fc99a0
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments