Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Weekday Mask Count

Count allowed weekdays in a half-open span using a seven-value flag vector and the supplied starting weekday from zero to six.

Source repository · Package JSON

Use Weekday Mask Count

use vendor::weekday_mask_count::weekday_mask_count;

Run the example

nest demo weekday_mask_count@0.1.1
blyxc native-run weekday_mask_count-demo/main.blyx
Example source and expected output
use vendor::weekday_mask_count::weekday_mask_count;

fn main() {
    println!(weekday_mask_count(4,4,[1,1,1,1,1,0,0]));
}

Expected output

2

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files0c3e94178570d36896499918ef2341345f44cccf542ac59eb18ba51787c9bb2ca315369564
0.1.0Download ZIP · Browse files6349f237849702ba522ddfea31a0ae8e87f6f36cf3337dc2b8e3fa87187ef6795fbbcf56ab