Hacker News new | ask | show | jobs
by vlowther 1943 days ago
`map[t]struct{}` saves you a few bytes per entry. Just use the `_,found := foo[key]` form of lookup