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

Widow Split

Choose the largest paragraph prefix that fits while leaving a minimum count on each side. Zero means defer the paragraph to the next page.

Source repository · Package JSON

Use Widow Split

use vendor::widow_split::widow_split;

Run the example

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

fn main() {
    println!(widow_split(7,6,2));
}

Expected output

5

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesc8462120f4b15a03e95a0829792ad47bc3445be6f032688ae24b4d7b49444856adc884e561
0.1.0Download ZIP · Browse files6349f23784a524b145f40099380e95a56899525d86bea14e0d7c2a037e3f08c1e9d802035d