Image.free: def of Base Import: import Base Lines 3119-3131 of Base/base.bend: https://jend.leeeet.dev/read.txt?path=Base/base.bend&start_line=3119&end_line=3131 import Base # Forks k levels, then a dead parameter sinks the rest in one loop. def Image.free(+k: Nat, img: Image) -> Unit: match k: case 0n: Image.sink(img) case 1n+e: match img: case Pix{c}: Unit{} case Qua{tl, tr, bl, br}: a b c d = Image.free(e, tl) Image.free(e, tr) Image.free(e, bl) Image.free(e, br) Image.drop.join(a, b, c, d) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Image https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Image.drop.join https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Image.sink https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit