HashSet<G>
Когда использовать
Set Example
using Gee;
void main () {
var my_set = new HashSet<string> ();
my_set.add ("one");
my_set.add ("two");
my_set.add ("three");
my_set.add ("two"); // will not be added because it's a duplicate
foreach (string s in my_set) {
stdout.printf ("%s\n", s);
}
}Compile and Run
Content:
Properties:
Creation methods:
Methods:
Last updated
Was this helpful?