You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(stdlib): collections.affine prelude arg-order + let mut (#128)
collections.affine imported filter/map/range/any from prelude but
(a) called filter/map pred-first while prelude is list-first
(arr, pred) -> Unify (Array, (_->Bool)); and (b) re-imported any/range
which it also defines locally with a (pred, list) signature -> conflict.
- import only Option/Some/None/filter/map from prelude (any/range are local)
- flip filter(...)/map(...) call sites to prelude's list-first order
(inner local any() kept pred-first)
- declare reassigned accumulators (result, xs, bs, trues, falses, arr)
as let mut
stdlib 17->18/19; 233/233 dune test, zero regression. Only option.affine remains.
Refs #128
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments