def keep_edge

near-v-framework@0.4.0.0 · general/compound/ops.bend:85

import near-v-framework@0.4.0.0/general/compound/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/general/compound/edge/type.bend as E

85# An edge is kept when both ends show, as two different things, not already drawn.
86def keep_edge(+a: String, +b: String, l: String, t: String, +rest: List<&2, E.Edge>) -> List<&2, E.Edge>:
87  keep(Bool.not(String.is_empty(a)) && Bool.not(String.is_empty(b)) && Bool.not(String.eq(a, b)) && Bool.not(drawn(a, b, rest)), E.Edge{a, b, l, t}, rest)

Uses (9)

Used by (1)