def take.pick

gralha-coverage@0.1.0.1 · cover.bend:304

import gralha-coverage@0.1.0.1/cover.bend as Cover
import Base

304def take.pick(hit: Bool, l: CovLine, rest: List<&2, CovLine>, +sy: F32, acc: List<&2, Act>) -> Take:
305  match hit:
306    case True{}: Take{False{}, rest, act.add(l, sy, acc)}
307    case False{}: Take{True{}, Con{l, rest}, acc}
308
309@unsafe

Uses (7)

Used by (1)