mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 18:24:06 +00:00
Add card procedure to measure cardinality of a bit_set
This commit is contained in:
@@ -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