def flush
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
298# Bytes enter at the top of w and shift down, so a full word has byte 0 lowest.
299def flush(full: Bool, a: Array<U32>, +k: U32, +w: U32) -> Array<U32>:
300 match full:
301 case True{}:
302 Array.set(U32, a, k, w)
303 case False{}:
304 a