Commit 58c8eb8
- take/get_or_insert: Rust-style `&mut Option<T>` -> AffineScript
`mut opt: Option<T>` ownership-prefix param (grammar has no `&mut`)
- drop prelude `map` from the import (option defines its own Option
`map`; prelude's is the list map — name conflict, same class as
collections#191)
- transpose/map_filter: rewrite the list-map with the file's own
for-loop ++ idiom instead of the (shadowed) map
- cat_options: Unit statement-block match arm so it matches the
`None => {}` arm (a bare assignment expr is typed as its RHS ->
Array vs Unit across arms; collect already works via its Never arm)
- collect/cat_options: reassigned `values` -> `let mut`
stdlib 18->19/19 — STAGE A coherence complete. 233/233 dune test, zero regression.
Refs #128
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9513d30 commit 58c8eb8
1 file changed
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
187 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
188 | 197 | | |
189 | 198 | | |
190 | 199 | | |
191 | 200 | | |
192 | 201 | | |
193 | 202 | | |
194 | | - | |
| 203 | + | |
195 | 204 | | |
196 | 205 | | |
197 | 206 | | |
| |||
203 | 212 | | |
204 | 213 | | |
205 | 214 | | |
206 | | - | |
| 215 | + | |
207 | 216 | | |
208 | 217 | | |
209 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
210 | 222 | | |
211 | 223 | | |
212 | 224 | | |
| |||
215 | 227 | | |
216 | 228 | | |
217 | 229 | | |
218 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
219 | 234 | | |
220 | 235 | | |
221 | 236 | | |
| |||
317 | 332 | | |
318 | 333 | | |
319 | 334 | | |
320 | | - | |
| 335 | + | |
321 | 336 | | |
322 | 337 | | |
323 | 338 | | |
324 | 339 | | |
325 | 340 | | |
326 | 341 | | |
327 | | - | |
| 342 | + | |
328 | 343 | | |
329 | 344 | | |
330 | 345 | | |
| |||
0 commit comments