Ops.inside: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/view/ops.bend as Ops Lines 229-238 of near-v-framework@0.4.0.0/domain/architecture/view/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/view/ops.bend&start_line=229&end_line=238 import Base import near-v-framework@0.4.0.0/general/compound/ops.bend as CO import near-v-framework@0.4.0.0/general/compound/edge/type.bend as E # The steps' ends inside the system, once each. def inside(es: List<&2, E.Edge>, +sys: List<&2, String>, +seen: List<&2, String>) -> List<&2, String>: match es: case []: [] case e <> rest: match e: case E.Edge{+x, +y, _, _}: keep_new(CO.has(sys, x) && Bool.not(CO.has(seen, x)), x, keep_new(CO.has(sys, y) && Bool.not(CO.has(x <> seen, y)), y, inside(rest, sys, x <> y <> seen))) Uses (7): 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.not 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=near-v-framework@0.4.0.0/domain/architecture/view/ops.bend&name=keep_new https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/general/compound/edge/type.bend&name=Edge https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/general/compound/ops.bend&name=has