https://github.com/tada-team/setof
String sets.
https://github.com/tada-team/setof
Last synced: 23 days ago
JSON representation
String sets.
- Host: GitHub
- URL: https://github.com/tada-team/setof
- Owner: tada-team
- License: unlicense
- Created: 2021-04-16T16:56:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T18:11:52.000Z (over 4 years ago)
- Last Synced: 2025-01-30T02:14:55.346Z (8 months ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sets
```go
import "setof"func main() {
s := setof.NewStrings("aaa", "bbb", "aaa")
print(len(s)) // 2
s.Update("ccc", "444")
print(s.Contains("123")) // false
print(s.Contains("aaa")) // true
}
```