Add card procedure to measure cardinality of a bit_set

This commit is contained in:
gingerBill
2018-12-21 10:31:10 +00:00
parent e3d7e6f76a
commit b4e83a430a
2 changed files with 21 additions and 0 deletions

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'];