a rusty set datastructure for go

ci: init

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 1e222be0 c6089afd

verified
Changed files
+16 -1
.tangled
workflows
+15
.tangled/workflows/ci.yml
··· 1 + when: 2 + - event: ["push", "pull_request"] 3 + branch: main 4 + 5 + engine: nixery 6 + 7 + dependencies: 8 + nixpkgs: 9 + - go 10 + 11 + steps: 12 + - name: check fmt 13 + command: go test -v 14 + - name: check test 15 + command: test -z "$(gofmt -l .)"
+1 -1
set.go
··· 29 29 return exists 30 30 } 31 31 32 - func (s Set[T]) Contains(item T) bool { 32 + func (s Set[T]) Contains(item T) bool { 33 33 _, exists := s.data[item] 34 34 return exists 35 35 }