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.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | c8462120f4 | b15a03e95a0829792ad47bc3445be6f032688ae24b4d7b49444856adc884e561 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | a524b145f40099380e95a56899525d86bea14e0d7c2a037e3f08c1e9d802035d |