Add card procedure to measure cardinality of a bit_set

This commit is contained in:
gingerBill committed 2018-12-21 10:31:10 +00:00
1 parent e3d7e6f76a
commit b4e83a430a
2 files changed
+21

No files matched your search

+1
View File
@@ -827,6 +827,7 @@ bit_set_type :: proc() {
}
X :: Saturday in WEEKEND; // Constant evaluation
fmt.println(X);
fmt.println("Cardinality:", card(e));
}
{
x: bit_set['A'..'Z'];