def arr.depth.if
import bend-toon-codec@0.1.0.0/src/frame.bend as Frameimport Base
import bend-toon-codec@0.1.0.0/src/split.bend as S
199def arr.depth.if(+empty: Bool, +d: U32) -> U32:
200 match empty:
201 case True{}:
202 S.none()
203 case False{}:
204 d