This repository was named to emphasise the comedy of its existence :) https://github.com/frou/poor-mans-generics/
type Strings map[string]stdext.Unit
[…]
func (a Strings) Intersection(b Strings) Strings {
result := NewStrings()
for as, _ := range a {
for bs, _ := range b {
if as == bs {
result.Add(as)
break
}
}
}
return result
} for k := range s1 {
if s2.Contains(k) {
result.Add(k)
}
}