aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-21 10:31:10 +0000
committergingerBill <bill@gingerbill.org>2018-12-21 10:31:10 +0000
commitb4e83a430a8401e915346cd2d6063d8a8a2d1e03 (patch)
tree23b31355f545ed18bd0a5a727c8fd7532847742f /examples
parente3d7e6f76a91aeba351c9d3a1a3add21f2e439ab (diff)
Add `card` procedure to measure cardinality of a bit_set
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index dcfb5a5bc..9c64ea733 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -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'];