def step

gralha-coverage@0.1.0.1 · cover.bend:364

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

364def step(xs: List<&2, Act>, +sy2: F32, +wind: F32, +last: F32, +even: Bool, +weight: F32, evs: List<&2, CovEv>, acc: List<&2, Act>) -> Step:
365  match xs:
366    case Nil{}: Step{evs, acc}
367    case Con{Act{cur, x0, y0, slope, bottom, dir}, rest}:
368      +c = cur
369      +d = dir
370      +b = bottom
371      step(rest, sy2, (wind + d : F32), c, even, weight, span.events(winding.inside(wind, even), last, c, weight, evs),
372        act.keep(F32.is_lt(sy2, b), x0, y0, slope, b, d, sy2, acc))

Uses (11)

Used by (1)