def pieces.row

gralha-coverage@0.1.0.1 · cover.bend:700

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

700# The row's pieces all go into the buffer and come back as a list (in any
701# order); those the next row no longer reaches are retired afterwards.
702def pieces.row(xs: List<&2, Piece>, +y: F32, +w: U32, active: List<&2, Piece>, b: (Array<F32> & Array<U32>) & (U32 & U32)) -> List<&2, Piece> & ((Array<F32> & Array<U32>) & (U32 & U32)):
703  match xs:
704    case Nil{}: (active, b)
705    case Con{p, rest}:
706      +pp = p
707      pieces.row(rest, y, w, Con{pp, active}, piece.events(pp, y, w, b))

Uses (8)

Used by (1)