let n = 4 let buf = Array.Empty(n) func rec(idx, begin) { for i in begin..