Cli.contains_range: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 117-123 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=117&end_line=123 import Base def contains_range(ranges: List<&2, CodeRange>, +code: U32) -> Bool: match ranges: case Nil{}: False{} case CodeRange{lo, hi} <> tail: Bool.or(Bool.and(U32.is_ge(code, lo), U32.is_le(code, hi)), contains_range(tail, code)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and 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=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=CodeRange