Add card procedure to measure cardinality of a bit_set
This commit is contained in:
1 parent
e3d7e6f76a
commit
b4e83a430a
2 files changed
+21
No files matched your search
@@ -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'];
|
||||
|
||||
Reference in new issue
Block a user