The glamourous AI coding agent for your favourite terminal 💘
1package util 2 3type Set[E comparable] map[E]struct{} 4 5func (s Set[E]) Add(v E) { 6 s[v] = struct{}{} 7} 8 9func (s Set[E]) Contains(v E) bool { 10 _, ok := s[v] 11 return ok 12}