1 2 3 4 5 6 7 8 9 10
function f(a, i) { for (i in a) delete a[i] if (a == 0) print 7 } BEGIN { f(arr) }