© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
14 replies
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)
xs.Concat(ys)
with regular enumerables? What I would be looking for is a way to take two
IReadOnlySet<T>
IReadOnlySet<T>
s and combine them in a way that you get back another
IReadOnlySet<T>
IReadOnlySet<T>
which is a combination of both of them, but which isn't evaluated immediately but rather lazily.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

LInq Combine duplicates
C#CC# / help
3y ago
How to combine images?
C#CC# / help
2y ago
❔ Lazily evaluating Dictionary in update loop with good performance
C#CC# / help
3y ago
✅ I cant combine folder paths
C#CC# / help
2y ago