def around

minebender-game@1.0.0.0 · solver.bend:309

import minebender-game@1.0.0.0/solver.bend as Solver
import Base
import minebender-game@1.0.0.0/types.bend as T

309# The numbers of `is` that count c.
310def around(its: List<&2, Item>, +c: T.Pos) -> List<&2, Item>:
311  match its:
312    case Nil{}:
313      Nil{}
314    case +i <> t:
315      around.put(i, c, around(t, c))

Uses (4)

Used by (6)