def arr.min
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
215# Shallowest array frame that already has an item or row.
216def arr.min(+stk: List<&2, Fr>) -> U32:
217 match stk:
218 case Nil{}:
219 S.none()
220 case Con{top, rest}:
221 U32.min(arr.depth(top), arr.min(rest))