D44 names this the spelling of an owned key collection: `m.keys() |> map(it.clone()) |> collect[Vec]()`. ```with use std.collections var m: HashMap[str, i32] = HashMap.new() m.insert("a", 1) let ks = m.keys() |> map(it.clone()) |> collect[Vec]() print(ks.len()) ``` Expected: `1`. Actual: `error: undefined variable` at `collect`, then `value is not callable`.
Activity
D44: map traversal observes: keys(), values() and iter() are view ite…
D44: map traversal observes; keys/values/iter are view iterators; Has…
ehartford commentedon Oct 5, 2026
Fixed on main by stack #2196 (merged as efb765c), battery green on a21e326; the regression test for it landed with the fix.