4 ms·
You can’t write intersection, union, difference, subset (contains all), or powerset as reusable functions for any element type. The idiomatic thing for now is t
by erik_seaberg 6y ago
You can’t write intersection, union, difference, subset (contains all), or powerset as reusable functions for any element type. The idiomatic thing for now is to rewrite them as loops over and over, but that’s error prone, hard to read, and not a good use of time.
- EdwardDiego 6y agoThis was the exact issue I hit. There are set libraries for Go, but they only handle standard types. The for loops got old quick.