Swpick.headroom2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/swpick.bend as Swpick Lines 241-246 of cswap-bend-cli@0.1.0.0/swpick.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/swpick.bend&start_line=241&end_line=246 import Base def headroom2(+xs: List<&2, U32>) -> Maybe<&2, U32>: match xs: case Nil{}: None{} case Con{h, t}: Some{(10000 - min_u32(10000, max_pct(Con{h, t}, 0)) : U32)} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swpick.bend&name=max_pct https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swpick.bend&name=min_u32