Cli.allowed.ok: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 420-426 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=420&end_line=426 import Base # whether `v` is listed; the empty list answers no def allowed.ok(cs: List<&2, String>, +vv: String) -> Bool: match cs: case Nil{}: False{} case Con{+h, t}: allowed.ok.at(String.eq(h, vv), allowed.ok(t, vv)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=allowed.ok.at