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
Spec §13.5 (a collection is a for iterable); D44 (traversal observes).
use std.collections
var s: HashSet[i32] = HashSet.new()
s.insert(3)
s.insert(1)
for n in s: print(n)
Expected: prints each element (&i32), in insertion order (D96).
Actual: cannot iterate over HashSet[i32] (§13.5). HashSet has no iter() either.
Found while implementing D96.
Activity
D44: map traversal observes: keys(), values() and iter() are view ite…
D44: map traversal observes; keys/values/iter are view iterators; Has…