Format.fits.step: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/format.bend as Format Lines 1863-1878 of bend-lint-rules@0.2.0.0/layout/format.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&start_line=1863&end_line=1878 import Base def fits.step(jobs: List<&2, Job>, left: U32) -> Fit: match jobs: case Nil{}: Stop{True{}} case Con{Job{Str{body, blank, width, tail}, indent, flat}, rest}: fits.width(Maybe.is_some(&2, U32, tail), width, rest, left) case Con{Job{Line{text, width, hard, offset}, indent, flat}, rest}: fits.width(hard || Bool.not(flat), width, rest, left) case Con{Job{Grp{doc, f}, indent, flat}, rest}: fits.flat(f, rest, left) case Con{Job{Nest{doc, amount, f}, indent, flat}, rest}: fits.flat(f, rest, left) case Con{Job{Cat{docs, f}, indent, True{}}, rest}: fits.flat(f, rest, left) case Con{Job{Cat{docs, f}, indent, False{}}, rest}: Go{push(docs, indent, False{}, rest), left} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.is_some https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=Doc https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=Fit https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=Job https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=fits.flat https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=fits.width https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=push