C#C
C#3y ago
Thinker

✅ Lazily combine sets

I'm not expecting this to be possible but just asking in case.
Is there any way to lazily combine sets, like if you did xs.Concat(ys) with regular enumerables? What I would be looking for is a way to take two IReadOnlySet<T>s and combine them in a way that you get back another IReadOnlySet<T> which is a combination of both of them, but which isn't evaluated immediately but rather lazily.
Was this page helpful?