itrators over arrays in sum/diff operations