Use closure state for render function
Use closure state for render function

In a C world, we'd need to emit a `while` loop instead.

guoyiteng/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,cucapra/braid