Config.with_num2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/config.bend as Config Lines 241-248 of cswap-bend-cli@0.1.0.0/daemon/config.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&start_line=241&end_line=248 import Base def with_num2(+is_th: Bool, +is_iv: Bool, +f: Flags, +n: U32) -> Flags: match is_th is_iv f: case True{} _ Flags{o, j, d, th, iv, cd, st, md, ia}: Flags{o, j, d, Some{clamp(n, 5000, 9990)}, iv, cd, st, md, ia} case False{} True{} Flags{o, j, d, th, iv, cd, st, md, ia}: Flags{o, j, d, th, Some{clamp((n / 100 : U32), 15, 3600)}, cd, st, md, ia} case False{} False{} Flags{o, j, d, th, iv, cd, st, md, ia}: Flags{o, j, d, th, iv, Some{clamp((n / 100 : U32), 0, 86400)}, st, md, ia} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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.div https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=Flags https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=clamp