def drawn

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

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

69def drawn(+a: String, +b: String, es: List<&2, E.Edge>) -> Bool:
70  match es:
71    case []:
72      False{}
73    case e <> rest:
74      match e:
75        case E.Edge{x, y, _, _}:
76          (String.eq(a, x) && String.eq(b, y)) || drawn(a, b, rest)

Uses (7)

Used by (1)