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
{{ message }}
Repository navigation
§13.3 zip(Iter[U]), chain(Iter[T]), zip_with(Iter[U], …) force ys.iter() at the call; for takes any iterable, these should too #2962
Errata #2955 item 6. Verified 2026-11-02: xs |> zip(ys) with ys: List[str] is refused ("type 'List[str]' does not implement trait 'Iter' required by bound 'R: Iter'"); xs |> zip(ys.iter()) passes. The compiler follows the table's signature exactly, so the signature is the ceremony: a .iter() the compiler could insert (Law 1). Proposal: the three take impl IntoIter[U], as await_all already does (lib/std/task.w) and as for does. Spec table and lib/std change together.
Activity
ehartford commentedon Nov 2, 2026
D186 (delegated, spec v7.35, #2970):
zip,chain,zip_withtakeimpl IntoIter. Implementation next.D186 (§13.3): zip, chain and zip_with take any iterable (#2962) (#3002)