def tcontains

minebender-game@1.0.0.0 · proof_solver.bend:686

import minebender-game@1.0.0.0/proof_solver.bend as ProofSolver
import Base
import minebender-game@1.0.0.0/types.bend as T
import minebender-game@1.0.0.0/board.bend as B
import minebender-game@1.0.0.0/solver.bend as S

686def tcontains(ts: List<&2, S.Todo>, +q: T.Pos) -> Bool:
687  match ts:
688    case Nil{}:
689      False{}
690    case S.Todo{c, rel} <> t:
691      B.same(c, q) || tcontains(t, q)

Uses (6)

Used by (16)