import sets var n = initSet[string]() n.incl("foo") var o = ["foo", "bar", "baz"].toSet o.incl("foobar")