we can define a zero cap HashSet by var
var a: HashSet[string]
but how to do same thing by let?This works:
import std/sets
let a = initHashSet[int](0)
But why would you do that? With let you won't be able to mutate it, so it's effectively useless.
Seems it can work
let a = HashSet[string]()