3 ms·
Sure, but intersections are straightforward to write with Go maps: for key, _ := range first { if _, found2 := second[key]; found2 { if _, foun
by Arainach 4y ago
Sure, but intersections are straightforward to write with Go maps:
for key, _ := range first {
if _, found2 := second[key]; found2 {
if _, found3 := third[key]; found3 {
// This is the intersection of 3 sets
}
}
}
- deleted 4y ago[deleted]