diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-21 10:31:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-21 10:31:10 +0000 |
| commit | b4e83a430a8401e915346cd2d6063d8a8a2d1e03 (patch) | |
| tree | 23b31355f545ed18bd0a5a727c8fd7532847742f /examples | |
| parent | e3d7e6f76a91aeba351c9d3a1a3add21f2e439ab (diff) | |
Add `card` procedure to measure cardinality of a bit_set
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 1 |
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']; |